ingenic-irq bugfix for 5.5-rc7
Subsystems (2)
Paul Cercueil
maintainerDear irqchip maintainers,
I have this patch which fixes a bug that was introduced in 5.5-rc1. I sent the v1 for -rc3 but it never got picked up.
Could you merge it for -rc7 (if -rc7 there is)?
Thanks,
-Paul
Paul Cercueil
maintainerPATCH v2 1/1 irqchip: ingenic: Get rid of the legacy IRQ domain
Get rid of the legacy IRQ domain and hardcoded IRQ base, since all the Ingenic drivers and platform code have been updated to use devicetree.
This also fixes the kernel being flooded with messages like:
[ 0.000000] irq: :interrupt-controller@10001000 didn't like
hwirq-0x0 to VIRQ8 mapping (rc=-19)
domain").
---
Notes:
v2: Update commit message to explain the reason of the fix
drivers/irqchip/irq-ingenic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/irqchip/irq-ingenic.c +2 -4
@@ -17,7 +17,6 @@#include <linux/delay.h> #include <asm/io.h> -#include <asm/mach-jz4740/irq.h> struct ingenic_intc_data {void __iomem *base;
@@ -50,7 +49,7 @@ static irqreturn_t intc_cascade(int irq, void *data)while (pending) {int bit =__fls (pending); - irq =irq_find_mapping (domain, bit + (i *32 )); + irq =irq_linear_revmap (domain, bit + (i *32 ));generic_handle_irq (irq); pending &= ~BIT (bit); }
@@ -97,8 +96,7 @@ static int __init ingenic_intc_of_init(struct device_node *node, goto out_unmap_irq; } - domain =irq_domain_add_legacy (node, num_chips *32 , -JZ4740_IRQ_BASE ,0 , + domain =irq_domain_add_linear (node, num_chips *32 , &irq_generic_chip_ops,NULL );if (!domain) { err = -ENOMEM ;
Signature · 1 line
2.24.1
[tip: irq/urgent] irqchip/ingenic: Get rid of the legacy IRQ domain
The following commit has been merged into the irq/urgent branch of tip:
The following commit has been merged into the irq/urgent branch of tip:
Commit-ID: 1fd224e35c1493e9f5d4d932c175616cccce8df9 Gitweb: https://git.kernel.org/tip/1fd224e35c1493e9f5d4d932c175616cccce8df9 Author: Paul Cercueil <[email protected]> AuthorDate: Mon, 13 Jan 2020 13:33:29 -03:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Mon, 13 Jan 2020 17:45:23 +01:00
irqchip/ingenic: Get rid of the legacy IRQ domain
Get rid of the legacy IRQ domain and hardcoded IRQ base, since all the Ingenic drivers and platform code have been updated to use devicetree.
This also fixes the kernel being flooded with messages like:
irq: interrupt-controller@10001000 didn't like hwirq-0x0 to VIRQ8 mapping (rc=-19)
--- drivers/irqchip/irq-ingenic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/irqchip/irq-ingenic.c +2 -4
@@ -17,7 +17,6 @@#include <linux/delay.h> #include <asm/io.h> -#include <asm/mach-jz4740/irq.h> struct ingenic_intc_data {void __iomem *base;
@@ -50,7 +49,7 @@ static irqreturn_t intc_cascade(int irq, void *data)while (pending) {int bit =__fls (pending); - irq =irq_find_mapping (domain, bit + (i *32 )); + irq =irq_linear_revmap (domain, bit + (i *32 ));generic_handle_irq (irq); pending &= ~BIT (bit); }
@@ -97,8 +96,7 @@ static int __init ingenic_intc_of_init(struct device_node *node, goto out_unmap_irq; } - domain =irq_domain_add_legacy (node, num_chips *32 , -JZ4740_IRQ_BASE ,0 , + domain =irq_domain_add_linear (node, num_chips *32 , &irq_generic_chip_ops,NULL );if (!domain) { err = -ENOMEM ;