]> git.baikalelectronics.ru Git - kernel.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)
commit8241657a83000b09c0917e4627bee450c6e69129
tree0bf6b989e7cb6cf2b0fc9aa4c93429c57a27fca1
parent6a4983142d9a84ea90f146a815dcad993a486517
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