]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 22 Mar 2017 14:02:34 +0000 (08:02 -0600)
commitdfcc10b29ab312a2d9337ea7b971c6b0adf23df6
tree193a488269a64d6996da1d83814ed02513283892
parentae2fa83be12b4dd10b9211d996d29f9d3cab6971
amd-xgbe: Stop the PHY before releasing interrupts

BugLink: http://bugs.launchpad.net/bugs/1675032
[ 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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c