diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-04-29 17:17:40 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-05-02 09:57:15 +1000 |
commit | 98a1ae10739674d83f0b159714f9d79b3ce7ad9d (patch) | |
tree | 8354c8dd1a26406fe23febbee2b01c874b696263 | |
parent | 0f492a92590850af6360bdcc93e2047b285d41c7 (diff) | |
download | skiboot-98a1ae10739674d83f0b159714f9d79b3ce7ad9d.zip skiboot-98a1ae10739674d83f0b159714f9d79b3ce7ad9d.tar.gz skiboot-98a1ae10739674d83f0b159714f9d79b3ce7ad9d.tar.bz2 |
hw/phb4: Fix references to PHB3
Currently most of the functionality of phb4_lsi_attributes() is disabled
when we have #defined DISABLE_ERR_INTS. This is the default behaviour
and #undefing the constant results in skiboot not compiling because the
code was not updated when it was copied across from PHB3. This patch
fixes the problem by changing the names to the phb4 versions.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | hw/phb4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5522,10 +5522,10 @@ static uint64_t phb4_lsi_attributes(struct irq_source *is __unused, uint32_t isn __unused) { #ifndef DISABLE_ERR_INTS - struct phb3 *p = is->data; + struct phb4 *p = is->data; uint32_t idx = isn - p->base_lsi; - if (idx == PHB3_LSI_PCIE_INF || idx == PHB3_LSI_PCIE_ER) + if (idx == PHB4_LSI_PCIE_INF || idx == PHB4_LSI_PCIE_ER) return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE | IRQ_ATTR_TYPE_LSI; #endif return IRQ_ATTR_TARGET_LINUX; |