]> git.karo-electronics.de Git - karo-tx-linux.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)
commit983942a5eacae8821882a3d348618b020098e8dc
tree78dfbdb46aff14453df7075f887385bed2e55d56
parentfe9066ade6a42a6f0bd22333e5831194104713ce
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:
d9663c8c2149 ("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