]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f6d4c0c0990fbe1a2533b203a598aeeeaa5fc37
treedd158423c755d19e36e7d4902bca3bdc27a71284
parent2a9842fd3a6d7a1a57c109950aa45f13d26b70e1
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