diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2018-02-20 15:22:05 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-21 15:39:54 -0500 |
commit | cfd092f2db8b4b6727e1c03ef68a7842e1023573 (patch) | |
tree | 70528a25f27e16972f923ba725779b10f82d4231 /drivers/net/ethernet | |
parent | bf006d18b74172c3562486b5e354b42cb5bcb261 (diff) | |
download | linux-stable-cfd092f2db8b4b6727e1c03ef68a7842e1023573.tar.gz linux-stable-cfd092f2db8b4b6727e1c03ef68a7842e1023573.tar.bz2 linux-stable-cfd092f2db8b4b6727e1c03ef68a7842e1023573.zip |
amd-xgbe: Restore PCI interrupt enablement setting on resume
After resuming from suspend, the PCI device support must re-enable the
interrupt setting so that interrupts are actually delivered.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c index 3e5833cf1fab..eb23f9ba1a9a 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c @@ -426,6 +426,8 @@ static int xgbe_pci_resume(struct pci_dev *pdev) struct net_device *netdev = pdata->netdev; int ret = 0; + XP_IOWRITE(pdata, XP_INT_EN, 0x1fffff); + pdata->lpm_ctrl &= ~MDIO_CTRL1_LPOWER; XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, pdata->lpm_ctrl); |