]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
amd-xgbe: Stop the PHY before releasing interrupts
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Tue, 28 Feb 2017 21:02:51 +0000 (15:02 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:56:58 +0000 (12:56 +0100)
commit4381ffdfb32ba2674eb8170114ae2bbfdcb24db0
tree733ae7de25a7c969440566f7901e735ec58d9885
parent7558c56cfe35b75db74ab6041d797f49bf970198
amd-xgbe: Stop the PHY before releasing interrupts

[ Upstream commit 402168b4c2dc0734b8fbd282eff77da0275c5129 ]

Some configurations require the use of the hardware's MDIO support to
communicate with external PHYs. The MDIO commands indicate completion
through the device interrupt. When bringing down the device the interrupts
were released before stopping the external PHY, resulting in MDIO command
timeouts. Move the stopping of the PHY to before the releasing of the
interrupts.

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-drv.c