]> 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)
commit658dbc08390d3d92653bc55fea5df54dcd32103a
treedd158423c755d19e36e7d4902bca3bdc27a71284
parent4f24de04459b5a6ad76adfac769dc3e97e5b8f96
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