amd-xgbe: Fix initial mode when auto-negotiation is disabled
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 22 May 2015 21:32:14 +0000 (16:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 04:13:58 +0000 (00:13 -0400)
commit471e14b232d13463ae24212bec63d0a455eff16b
treedd158423c755d19e36e7d4902bca3bdc27a71284
parent73c259165e2648638e959844434d899f58108567
amd-xgbe: Fix initial mode when auto-negotiation 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.

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