]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:56:58 +0000 (12:56 +0100)
commit9919f222968c0d311c8c2f658eef767529981504
treecbe4f55e583170d892c2f104ba7dec9a1c8c3de3
parent4381ffdfb32ba2674eb8170114ae2bbfdcb24db0
amd-xgbe: Be sure to set MDIO modes on device (re)start

[ Upstream commit b42c6761fd1651f564491b53016046c9ebf0b2a9 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c