Skip to contentSkip to conversation

amd-xgbe: Restore PCI interrupt enablement setting on resume

PATCH In review Tom Lendacky 2 participants 2 messages Feb 20, 2018 – Feb 21, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

Please queue this patch up to stable releases 4.14 and above.

 drivers/net/ethernet/amd/xgbe/xgbe-pci.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/amd/xgbe/xgbe-pci.c +2 -0
index 3e5833c..eb23f9b 100644
@@ -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);
 
maintainer
#1 lore raw

From: Tom Lendacky <[email protected]>
Date: Tue, 20 Feb 2018 15:22:05 -0600

Quoted 7 lines

After resuming from suspend, the PCI device support must re-enable the interrupt setting so that interrupts are actually delivered.

---

Please queue this patch up to stable releases 4.14 and above.

Applied and queued up for -stable, thank you.