1 From 3bb5880ab3dd31f75c07c3c33bf29c5d469b28f3 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Thu, 18 Jan 2024 15:41:21 +0000
4 Subject: [PATCH] fixup! irqchip: irq-bcm2712-mip: Support for 2712's MIP
6 Use irq_domain_add_hierarchy so that the root pointer is initialised
7 correctly. Failure to do so leads to (at least) lockdep warnings when
10 See: https://github.com/raspberrypi/linux/issues/5866
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
14 drivers/irqchip/irq-bcm2712-mip.c | 8 +++-----
15 1 file changed, 3 insertions(+), 5 deletions(-)
17 --- a/drivers/irqchip/irq-bcm2712-mip.c
18 +++ b/drivers/irqchip/irq-bcm2712-mip.c
19 @@ -209,16 +209,14 @@ static int mip_init_domains(struct mip_p
23 - middle_domain = irq_domain_add_tree(NULL,
24 - &mip_irq_domain_ops,
26 + middle_domain = irq_domain_add_hierarchy(gic_domain, 0, 0, NULL,
27 + &mip_irq_domain_ops,
30 pr_err("Failed to create the MIP middle domain\n");
34 - middle_domain->parent = gic_domain;
36 msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(node),