]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe-phy: Fix initial mode when autoneg is disabled
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Tue, 26 May 2015 14:51:49 +0000 (09:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2015 23:47:30 +0000 (19:47 -0400)
commitbc553eec074b2cda6022f74881ff677ab8429161
tree78dfbdb46aff14453df7075f887385bed2e55d56
parent0606ccc320063432da3f7dd6afb6887b853a9ae5
amd-xgbe-phy: Fix initial mode when autoneg is disabled

When the ethtool command is used to set the speed of the device while
the device is down, the check to set the initial mode may fail when
the device is brought up, causing failure to bring the device up.

Update the code to set the initial mode based on the desired speed if
auto-negotiation is disabled.

This patch fixes a bug introduced by:
50e1ca63a76b ("amd-xgbe-phy: Use phydev advertising field vs supported")

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