diff mbox

[22/33] interrupts: LPC is always an interrupt controller

Message ID 1466808476-32690-22-git-send-email-benh@kernel.crashing.org
State Superseded
Headers show

Commit Message

Benjamin Herrenschmidt June 24, 2016, 10:47 p.m. UTC
Whether we have Naples or not, the "interrupts" properties
of the child of the LPC node are always in the LPC interrupt
number space, and so should always have the LPC controller as
their interrupt controller.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 hw/lpc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/hw/lpc.c b/hw/lpc.c
index 6c40786..083a5af 100644
--- a/hw/lpc.c
+++ b/hw/lpc.c
@@ -813,8 +813,9 @@  static void lpc_init_chip_p8(struct dt_node *xn)
 	printf("LPC: Bus on chip %d, access via XSCOM, PCB_Addr=0x%x\n", chip->id, chip->lpc_xbase);
 
 	lpc_init_interrupts(chip);
-	if (chip->type == PROC_CHIP_P8_NAPLES)
-		dt_add_property(xn, "interrupt-controller", NULL, 0);
+	dt_add_property(xn, "interrupt-controller", NULL, 0);
+	dt_add_property_cells(xn, "#interrupt-cells", 1);
+	assert(dt_prop_get_u32(xn, "#address-cells") == 2);
 }
 
 static void lpc_init_chip_p9(struct dt_node *opb_node)