From: Maxime Bizon Date: Sat, 20 Oct 2012 14:53:40 +0000 (+0000) Subject: e1000: fix concurrent accesses to PHY from watchdog and ethtool X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~480^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac56558fc6ed4943ba4d9dd0046437d4fb05e8b6;p=pandora-kernel.git 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 Signed-off-by: Florian Fainelli Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed