]> git.karo-electronics.de Git - karo-tx-linux.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Mar 2017 20:57:53 +0000 (12:57 -0800)
commit402168b4c2dc0734b8fbd282eff77da0275c5129
tree77411a23295dac1653930a1f40f043c3074fdec8
parent9aea7779b764a11e357d3c74af6aee3cf90f2045
amd-xgbe: Stop the PHY before releasing interrupts

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>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c