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 <clg@kaod.org> Tested-by: Gustavo Romero <gustavo.romero@linaro.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210913134056.3761960-1-clg@kaod.org
1 parent 3a1e92d commit c006a06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)