When igc_rd32() reads all-ones from a register it assumes the PCIe link is gone, sets hw->hw_addr to NULL and detaches the netdev. From then on rd32() returns ~0 and wr32() is a no-op. Only igc_io_slot_reset() puts hw_addr back, so recovery depends on AER reporting the error. __igc_resume() restores PCI config space, resets the MAC and calls netif_device_attach(), but leaves hw_addr NULL. After a suspend/resume cycle the interface is attached again while every register read still returns all-ones. The driver then reports a link derived from the bogus STATUS and CTRL values and runs into a Tx hang: eno1: PCIe link lost, device now detached igc: Failed to read reg 0xc030! ... suspend / resume ... eno1: NIC Link is Up 2500 Mbps Full Duplex, Flow Control: RX/TX eno1: NIC Link is Down eno1: CTRL ffffffff eno1: STATUS ffffffff eno1: Reset adapter The WARN shows pci_device_is_present() was true when the read failed, so the device was still on the bus. The only way out is to remove and rescan the device. Restore hw_addr once the device is known to be present, as ixgbe_resume() already does. If the device is really gone, the next register read detaches it again. Seen on an I225-V (rev 03) behind an AMD 600 series chipset switch, which loses MMIO access roughly once a week without any AER report. Written with the help of an AI coding assistant (Claude Opus 5.5), which found the bug and drafted the patch and this message; reproduced and tested on the hardware by me. Fixes: 9513d2a5dc7f ("igc: Add legacy power management support") Signed-off-by: François-Xavier Gsell --- drivers/net/ethernet/intel/igc/igc_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 1fb5f3cbe93c..3dd2ee9a9011 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -7549,6 +7549,10 @@ static int __igc_resume(struct device *dev, bool rpm) if (!pci_device_is_present(pdev)) return -ENODEV; + + /* A failed register read may have cleared hw_addr. */ + hw->hw_addr = adapter->io_addr; + err = pci_enable_device_mem(pdev); if (err) { netdev_err(netdev, "Cannot enable PCI device from suspend\n"); -- 2.56.1 igb_rd32() sets hw->hw_addr to NULL when a register read returns all-ones, after which every register access is a no-op. __igb_resume() restores PCI state and re-attaches the netdev but never restores hw_addr, so an adapter that saw a single failed read stays unusable across suspend/resume while appearing attached. Only igb_io_slot_reset() restores it today. Restore hw_addr once the device is known to be present, as ixgbe_resume() does. igc has the same problem and gets the same fix. A similar change was discussed for igb in 2016, when a register read during suspend triggered the detach, and was not merged because that read was the real bug. Here the failure happens while the device is running and powered, so there is no stray access to fix; the device needs a path back once it is reachable again. Written with the help of an AI coding assistant (Claude Opus 5.5), which drafted the patch and this message. Compile-tested only. Fixes: 22a8b2915998 ("igb: add register rd/wr for surprise removal") Signed-off-by: François-Xavier Gsell --- drivers/net/ethernet/intel/igb/igb_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 131df3e09ba1..3667a86df248 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -9607,6 +9607,10 @@ static int __igb_resume(struct device *dev, bool rpm) if (!pci_device_is_present(pdev)) return -ENODEV; + + /* A failed register read may have cleared hw_addr. */ + hw->hw_addr = adapter->io_addr; + err = pci_enable_device_mem(pdev); if (err) { dev_err(&pdev->dev, -- 2.56.1