Skip to content

Commit 052d7b9

Browse files
ozbenhstewartsmith
authored andcommitted
interrupts: LPC is always an interrupt controller
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> Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
1 parent b481415 commit 052d7b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hw/lpc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,9 @@ static void lpc_init_chip_p8(struct dt_node *xn)
816816
chip->id, chip->lpc_xbase);
817817

818818
lpc_init_interrupts(chip);
819-
if (chip->type == PROC_CHIP_P8_NAPLES)
820-
dt_add_property(xn, "interrupt-controller", NULL, 0);
819+
dt_add_property(xn, "interrupt-controller", NULL, 0);
820+
dt_add_property_cells(xn, "#interrupt-cells", 1);
821+
assert(dt_prop_get_u32(xn, "#address-cells") == 2);
821822
}
822823

823824
static void lpc_init_chip_p9(struct dt_node *opb_node)

0 commit comments

Comments
 (0)