]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Be sure to set MDIO modes on device (re)start
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Tue, 28 Feb 2017 21:03:01 +0000 (15:03 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Mar 2017 20:57:53 +0000 (12:57 -0800)
commite91dbeb3823dc3f79fed6d0960d9005f44c11e11
treebce13cb8d957386bf17989162e522eeb5bf896e9
parent6ef5bf59040321177bce6867afff3e0d4a185090
amd-xgbe: Be sure to set MDIO modes on device (re)start

The MDIO register mode is set when the device is probed. But when the
device is brought down and then back up, the MDIO register mode has been
reset.  Be sure to reset the mode during device startup and only change
the mode of the address specified.

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