irqchip: riscv-imsic: Add no-imisc-ipi quirk property

To control whether to use imsic ipi.

Context is that kmh-v2 have known issue that the path from imisic IPI
to CPU might not work sometimes. And the workaround is to use clint IPI
instead.

Signed-off-by: Yaxing Guo <guoyaxing@bosc.ac.cn>
This commit is contained in:
Yaxing Guo
2025-08-06 11:25:58 +08:00
committed by Ran Wang
parent 8759fda167
commit 8dcb5db893
+7 -4
View File
@@ -154,10 +154,13 @@ static int __init imsic_early_probe(struct fwnode_handle *fwnode)
}
/* Initialize IPI domain */
rc = imsic_ipi_domain_init();
if (rc) {
pr_err("%pfwP: Failed to initialize IPI domain\n", fwnode);
return rc;
if (!of_property_read_bool(to_of_node(fwnode), "no-imsic-ipi")) {
/* Initialize IPI domain */
rc = imsic_ipi_domain_init();
if (rc) {
pr_err("%pfwP: Failed to initialize IPI domain\n", fwnode);
return rc;
}
}
/* Setup chained handler to the parent domain interrupt */