aboutsummaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-xilinx-intc.c
AgeCommit message (Collapse)AuthorFilesLines
2020-04-01Revert "irqchip/xilinx: Enable generic irq multi handler"Marc Zyngier1-20/+14
This reverts commit a0789993bf8266e62fea6b4613945ba081c71e7d, which breaks a number of PPC platforms. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2020-04-01Revert "irqchip/xilinx: Do not call irq_set_default_host()"Marc Zyngier1-0/+1
This reverts commit 9c2d4f525c002591f4e0c14a37663663aaba1656, which breaks a number of PPC platforms. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2020-03-22irqchip/xilinx: Do not call irq_set_default_host()Mubin Sayyed1-1/+0
Using a default domain on DT based platforms is unnecessary. Signed-off-by: Mubin Sayyed <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2020-03-22irqchip/xilinx: Enable generic irq multi handlerMichal Simek1-14/+20
Register default arch handler via driver instead of directly pointing to xilinx intc controller. This patch makes architecture code more generic. Driver calls generic domain specific irq handler which does the most of things self. Also get rid of concurrent_irq counting which hasn't been exported anywhere. Based on this loop was also optimized by using do/while loop instead of goto loop. Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Stefan Asserhall <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2020-03-22irqchip/xilinx: Fill error code when irq domain registration failsMichal Simek1-0/+1
There is no ret filled in case of irq_domain_add_linear() failure. Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Stefan Asserhall <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2020-03-22irqchip/xilinx: Add support for multiple instancesMubin Sayyed1-48/+67
Added support for cascaded interrupt controllers. Following cascaded configurations have been tested, - peripheral->xilinx-intc->xilinx-intc->gic->Cortexa53 processor on zcu102 board - peripheral->xilinx-intc->xilinx-intc->microblaze processor on kcu105 board Signed-off-by: Mubin Sayyed <[email protected]> Signed-off-by: Anirudha Sarangi <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2017-08-23irqchip: Convert to using %pOF instead of full_nameRob Herring1-2/+2
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Cc: Thomas Gleixner <[email protected]> Cc: Jason Cooper <[email protected]> Cc: Lee Jones <[email protected]> Cc: Stefan Wahren <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Ray Jui <[email protected]> Cc: Scott Branden <[email protected]> Cc: [email protected] Cc: Sylvain Lemieux <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Jonathan Hunter <[email protected]> Cc: Michal Simek <[email protected]> Cc: "Sören Brinkmann" <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Acked-by: Eric Anholt <[email protected]> Acked-by: Baruch Siach <[email protected]> Acked-by: Vladimir Zapolskiy <[email protected]> Acked-by: Matthias Brugger <[email protected]> Acked-by: Alexandre Torgue <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
2016-11-29powerpc/virtex: Use generic xilinx irqchip driverZubair Lutfullah Kakakhel1-1/+2
The Xilinx interrupt controller driver is now available in drivers/irqchip. Switch to using that driver. Acked-by: Michael Ellerman <[email protected]> Acked-by: Michal Simek <[email protected]> Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
2016-11-29irqchip/xilinx: Try to fall back if xlnx,kind-of-intr not providedZubair Lutfullah Kakakhel1-2/+2
The powerpc dts file does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming kind-of-intr is 0x0 as a fall back. Acked-by: Michal Simek <[email protected]> Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
2016-11-29irqchip/xilinx: Add support for parent intcZubair Lutfullah Kakakhel1-2/+32
The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add support for the driver to chain the irq handler Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
2016-11-29irqchip/xilinx: Rename get_irq to xintc_get_irqZubair Lutfullah Kakakhel1-1/+1
Now that the driver is generic and used by multiple archs, get_irq is too generic. Rename get_irq to xintc_get_irq to avoid any conflicts Acked-by: Michal Simek <[email protected]> Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
2016-11-29irqchip/xilinx: Restructure and use jump label apiZubair Lutfullah Kakakhel1-52/+66
Add a global structure to house various variables. And cleanup read/write handling by using jump label api. Tested-by; Michal Simek <[email protected]> Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
2016-11-29irqchip/xilinx: Clean up print messagesZubair Lutfullah Kakakhel1-9/+9
Remove __func__ and prefix irq-xilinx in various debug prints Acked-by: Michal Simek <[email protected]> Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
2016-11-29microblaze/irqchip: Move intc driver to irqchipZubair Lutfullah Kakakhel1-0/+196
The Xilinx AXI Interrupt Controller IP block is used by the MIPS based xilfpga platform and a few PowerPC based platforms. Move the interrupt controller code out of arch/microblaze so that it can be used by everyone Tested-by: Michal Simek <[email protected]> Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>