aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/psycho_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel/psycho_common.c')
-rw-r--r--arch/sparc64/kernel/psycho_common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/sparc64/kernel/psycho_common.c b/arch/sparc64/kernel/psycho_common.c
index 6b188dfeeb9d..790996428c14 100644
--- a/arch/sparc64/kernel/psycho_common.c
+++ b/arch/sparc64/kernel/psycho_common.c
@@ -252,7 +252,7 @@ static irqreturn_t psycho_pcierr_intr_other(struct pci_pbm_info *pbm)
252{ 252{
253 irqreturn_t ret = IRQ_NONE; 253 irqreturn_t ret = IRQ_NONE;
254 u64 csr, csr_error_bits; 254 u64 csr, csr_error_bits;
255 u16 stat; 255 u16 stat, *addr;
256 256
257 csr = upa_readq(pbm->pci_csr); 257 csr = upa_readq(pbm->pci_csr);
258 csr_error_bits = csr & (PSYCHO_PCICTRL_SBH_ERR | PSYCHO_PCICTRL_SERR); 258 csr_error_bits = csr & (PSYCHO_PCICTRL_SBH_ERR | PSYCHO_PCICTRL_SERR);
@@ -269,7 +269,9 @@ static irqreturn_t psycho_pcierr_intr_other(struct pci_pbm_info *pbm)
269 pbm->name); 269 pbm->name);
270 ret = IRQ_HANDLED; 270 ret = IRQ_HANDLED;
271 } 271 }
272 pci_read_config_word(pbm->pci_bus->self, PCI_STATUS, &stat); 272 addr = psycho_pci_config_mkaddr(pbm, pbm->pci_first_busno,
273 0, PCI_STATUS);
274 pci_config_read16(addr, &stat);
273 if (stat & (PCI_STATUS_PARITY | 275 if (stat & (PCI_STATUS_PARITY |
274 PCI_STATUS_SIG_TARGET_ABORT | 276 PCI_STATUS_SIG_TARGET_ABORT |
275 PCI_STATUS_REC_TARGET_ABORT | 277 PCI_STATUS_REC_TARGET_ABORT |
@@ -277,7 +279,7 @@ static irqreturn_t psycho_pcierr_intr_other(struct pci_pbm_info *pbm)
277 PCI_STATUS_SIG_SYSTEM_ERROR)) { 279 PCI_STATUS_SIG_SYSTEM_ERROR)) {
278 printk(KERN_ERR "%s: PCI bus error, PCI_STATUS[%04x]\n", 280 printk(KERN_ERR "%s: PCI bus error, PCI_STATUS[%04x]\n",
279 pbm->name, stat); 281 pbm->name, stat);
280 pci_write_config_word(pbm->pci_bus->self, PCI_STATUS, 0xffff); 282 pci_config_write16(addr, 0xffff);
281 ret = IRQ_HANDLED; 283 ret = IRQ_HANDLED;
282 } 284 }
283 return ret; 285 return ret;