sky2: hold spinlock around phy_power_down
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 14 Aug 2009 05:15:15 +0000 (05:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Aug 2009 22:30:02 +0000 (15:30 -0700)
commit0da6d7b331f391d3c0ce52fb5289f7edeb94e280
tree64c88c526fbd81e7bbb4bbbf27474e420de2e4db
parent264bb4fab1a0952b4eef4df5b9e90bc050a2d1e6
sky2: hold spinlock around phy_power_down

Avoid any possible problems with accessing PHY registers on shutdown.
This is a purely theoretical issue and is not related to any of the
outstanding bug reports. Since receiver and transmitter are already
shutdown and phy interrupts for this device are already disabled,
there should already be enough protection. Suggested by Mike McCormack.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c