[Skiboot] [PATCH] hw/phb4: Fix references to PHB3
Oliver O'Halloran
oohall at gmail.com
Mon Apr 29 17:17:40 AEST 2019
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 at gmail.com>
---
hw/phb4.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/phb4.c b/hw/phb4.c
index 711d55b0dc26..7d06c3acfca4 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -5530,10 +5530,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;
--
2.20.1
More information about the Skiboot
mailing list