Skip to content

Commit c006a06

Browse files
legoatermpe
authored andcommitted
powerpc/xics: Set the IRQ chip data for the ICS native backend
The ICS native driver relies on the IRQ chip data to find the struct 'ics_native' describing the ICS controller but it was removed by commit 248af24 ("powerpc/xics: Rename the map handler in a check handler"). Revert this change to fix the Microwatt SoC platform. Fixes: 248af24 ("powerpc/xics: Rename the map handler in a check handler") Signed-off-by: Cédric Le Goater <[email protected]> Tested-by: Gustavo Romero <[email protected]> Reviewed-by: Joel Stanley <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3a1e92d commit c006a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/sysdev/xics/xics-common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ static int xics_host_map(struct irq_domain *domain, unsigned int virq,
348348
if (xics_ics->check(xics_ics, hwirq))
349349
return -EINVAL;
350350

351-
/* No chip data for the XICS domain */
351+
/* Let the ICS be the chip data for the XICS domain. For ICS native */
352352
irq_domain_set_info(domain, virq, hwirq, xics_ics->chip,
353-
NULL, handle_fasteoi_irq, NULL, NULL);
353+
xics_ics, handle_fasteoi_irq, NULL, NULL);
354354

355355
return 0;
356356
}

0 commit comments

Comments
 (0)