{
        struct rtl8169_private *tp = netdev_priv(dev);
        struct pci_dev *pdev = tp->pci_dev;
-       u16 pci_status, pci_cmd;
+       int pci_status_errs;
+       u16 pci_cmd;
 
        pci_read_config_word(pdev, PCI_COMMAND, &pci_cmd);
-       pci_read_config_word(pdev, PCI_STATUS, &pci_status);
 
-       netif_err(tp, intr, dev, "PCI error (cmd = 0x%04x, status = 0x%04x)\n",
-                 pci_cmd, pci_status);
+       pci_status_errs = pci_status_get_and_clear_errors(pdev);
+
+       netif_err(tp, intr, dev, "PCI error (cmd = 0x%04x, status_errs = 0x%04x)\n",
+                 pci_cmd, pci_status_errs);
 
        /*
         * The recovery sequence below admits a very elaborated explanation:
 
        pci_write_config_word(pdev, PCI_COMMAND, pci_cmd);
 
-       pci_write_config_word(pdev, PCI_STATUS,
-               pci_status & (PCI_STATUS_DETECTED_PARITY | PCI_STATUS_PARITY |
-               PCI_STATUS_SIG_SYSTEM_ERROR | PCI_STATUS_REC_MASTER_ABORT |
-               PCI_STATUS_REC_TARGET_ABORT | PCI_STATUS_SIG_TARGET_ABORT));
-
        rtl_schedule_task(tp, RTL_FLAG_TASK_RESET_PENDING);
 }