If you have portfast on the switchport you're changing the speed/duplex, spanning tree won't be affected when the port resets. However, if this is one of the ports that is switch to switch (usually trunked) and participating in STP, then you will trigger a spanning-tree change. RSTP (802.1w) is the way to go if all your switches support it.