aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/pcie/aer/aer_inject.c2
-rw-r--r--drivers/pci/pcie/aer/aerdrv.c2
-rw-r--r--include/linux/pci_regs.h3
3 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c
index f8f425b8731d..909924692b8a 100644
--- a/drivers/pci/pcie/aer/aer_inject.c
+++ b/drivers/pci/pcie/aer/aer_inject.c
@@ -168,7 +168,7 @@ static u32 *find_pci_config_dword(struct aer_error *err, int where,
168 target = &err->root_status; 168 target = &err->root_status;
169 rw1cs = 1; 169 rw1cs = 1;
170 break; 170 break;
171 case PCI_ERR_ROOT_COR_SRC: 171 case PCI_ERR_ROOT_ERR_SRC:
172 target = &err->source_id; 172 target = &err->source_id;
173 break; 173 break;
174 } 174 }
diff --git a/drivers/pci/pcie/aer/aerdrv.c b/drivers/pci/pcie/aer/aerdrv.c
index b69dbdc36817..1a55c16e2f3f 100644
--- a/drivers/pci/pcie/aer/aerdrv.c
+++ b/drivers/pci/pcie/aer/aerdrv.c
@@ -210,7 +210,7 @@ irqreturn_t aer_irq(int irq, void *context)
210 } 210 }
211 211
212 /* Read error source and clear error status */ 212 /* Read error source and clear error status */
213 pci_read_config_dword(pdev->port, pos + PCI_ERR_ROOT_COR_SRC, &id); 213 pci_read_config_dword(pdev->port, pos + PCI_ERR_ROOT_ERR_SRC, &id);
214 pci_write_config_dword(pdev->port, pos + PCI_ERR_ROOT_STATUS, status); 214 pci_write_config_dword(pdev->port, pos + PCI_ERR_ROOT_STATUS, status);
215 215
216 /* Store error source for later DPC handler */ 216 /* Store error source for later DPC handler */
diff --git a/include/linux/pci_regs.h b/include/linux/pci_regs.h
index c8f302991b66..dd0dd873f637 100644
--- a/include/linux/pci_regs.h
+++ b/include/linux/pci_regs.h
@@ -563,8 +563,7 @@
563#define PCI_ERR_ROOT_FIRST_FATAL 0x00000010 /* First Fatal */ 563#define PCI_ERR_ROOT_FIRST_FATAL 0x00000010 /* First Fatal */
564#define PCI_ERR_ROOT_NONFATAL_RCV 0x00000020 /* Non-Fatal Received */ 564#define PCI_ERR_ROOT_NONFATAL_RCV 0x00000020 /* Non-Fatal Received */
565#define PCI_ERR_ROOT_FATAL_RCV 0x00000040 /* Fatal Received */ 565#define PCI_ERR_ROOT_FATAL_RCV 0x00000040 /* Fatal Received */
566#define PCI_ERR_ROOT_COR_SRC 52 566#define PCI_ERR_ROOT_ERR_SRC 52 /* Error Source Identification */
567#define PCI_ERR_ROOT_SRC 54
568 567
569/* Virtual Channel */ 568/* Virtual Channel */
570#define PCI_VC_PORT_REG1 4 569#define PCI_VC_PORT_REG1 4