]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa8327da49445e9ea6ba15a158de60543b2a759e
tree64c88c526fbd81e7bbb4bbbf27474e420de2e4db
parent0802931198ed92e71bb6349b1616117ef1b6a083
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