diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2020-01-21 18:28:34 +1100 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-06-03 17:15:50 +1000 |
commit | 4357838d554592a46f6c24fd0fae7fc74c16f9ac (patch) | |
tree | 671d74f7e3337a3d7da27b99cb9ed1492617fa46 /hw/phb4.c | |
parent | 6bf21350da32776aac8ba75bf48933854647bd7e (diff) | |
download | skiboot-4357838d554592a46f6c24fd0fae7fc74c16f9ac.zip skiboot-4357838d554592a46f6c24fd0fae7fc74c16f9ac.tar.gz skiboot-4357838d554592a46f6c24fd0fae7fc74c16f9ac.tar.bz2 |
hw/phb4: Make error interrupt handler compile
When phb4.c was copied from phb3.c the error interrupts were disabled by
default and apparently never re-enabled. Remove the #if 0 block and call
phb4_set_err_pending() rather than the phb3 version.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw/phb4.c')
-rw-r--r-- | hw/phb4.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -5590,7 +5590,6 @@ static void phb4_err_interrupt(struct irq_source *is, uint32_t isn) PHBDBG(p, "Got interrupt 0x%08x\n", isn); -#if 0 /* Update pending event */ opal_update_pending_evt(OPAL_EVENT_PCI_ERROR, OPAL_EVENT_PCI_ERROR); @@ -5603,8 +5602,7 @@ static void phb4_err_interrupt(struct irq_source *is, uint32_t isn) * Mark the PHB has pending error so that the OS * can handle it at late point. */ - phb3_set_err_pending(p, true); -#endif + phb4_set_err_pending(p, true); } static uint64_t phb4_lsi_attributes(struct irq_source *is __unused, |