]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
amd-xgbe: Restore PCI interrupt enablement setting on resume
authorTom Lendacky <thomas.lendacky@amd.com>
Tue, 20 Feb 2018 21:22:05 +0000 (15:22 -0600)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:28:12 +0000 (08:28 -0500)
BugLink: http://bugs.launchpad.net/bugs/1755179
[ Upstream commit cfd092f2db8b4b6727e1c03ef68a7842e1023573 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/ethernet/amd/xgbe/xgbe-pci.c

index 3e5833cf1fabaa35f1fde959bcd4b7ed988ca44c..eb23f9ba1a9a10091f8d42bb71e35291e224c4f1 100644 (file)
@@ -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);