]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe-phy: Check device for current speed mode (KR/KX)
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 3 Sep 2014 17:14:16 +0000 (12:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Sep 2014 22:11:20 +0000 (15:11 -0700)
commitc9b34f6bb6ca59f65869e0dc1c8078376d5c62d0
treeeb0e1341d18259b468ed491580e4b0d8cbb99529
parentdc1420a11e91988045a0ad64dc2bfb40e98b4443
amd-xgbe-phy: Check device for current speed mode (KR/KX)

Since device resets can change the current mode it's possible to think
the device is in a different mode than it actually is.  Rather than
trying to determine every place that is needed to set/save the current
mode, be safe and check the devices actual mode when needed rather than
trying to track it.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/amd-xgbe-phy.c