]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
e1000: fix concurrent accesses to PHY from watchdog and ethtool
authorMaxime Bizon <mbizon@freebox.fr>
Sat, 20 Oct 2012 14:53:40 +0000 (14:53 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 1 Nov 2012 10:11:13 +0000 (03:11 -0700)
commitac56558fc6ed4943ba4d9dd0046437d4fb05e8b6
tree0bf6b989e7cb6cf2b0fc9aa4c93429c57a27fca1
parentede4126efc93dcee555100c8fe00ed201713e800
e1000: fix concurrent accesses to PHY from watchdog and ethtool

The e1000 driver currently does not protect concurrent accesses to the PHY
from both the ethtool callbacks, and from the e1000_watchdog function. This
patchs adds a new spinlock which is used by e1000_{read,write}_phy_reg in
order to serialize concurrent accesses to the PHY.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000/e1000_hw.c