* [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE
@ 2016-09-19 8:49 Marc Zyngier
2016-09-19 9:12 ` Thomas Gleixner
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Marc Zyngier @ 2016-09-19 8:49 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: linux-kernel, Geert Uytterhoeven
There is no point in trying to configure the trigger of a chained
interrupt if no trigger information has been configured. At best
this is ignored, and at the worse this confuses the underlying
irqchip (which is likely not to handle such a thing), and
unnecessarily alarms the user.
Only apply the configuration if type is not IRQ_TYPE_NONE.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 1e12c4a9393b ("genirq: Correctly configure the trigger on chained interrupts")
Link: https://lkml.kernel.org/r/CAMuHMdVW1eTn20=EtYcJ8hkVwohaSuH_yQXrY2MGBEvZ8fpFOg@mail.gmail.com
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
---
kernel/irq/chip.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 6373890..26ba565 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -820,6 +820,8 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
desc->name = name;
if (handle != handle_bad_irq && is_chained) {
+ unsigned int type = irqd_get_trigger_type(&desc->irq_data);
+
/*
* We're about to start this interrupt immediately,
* hence the need to set the trigger configuration.
@@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
* chained interrupt. Reset it immediately because we
* do know better.
*/
- __irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
- desc->handle_irq = handle;
+ if (type != IRQ_TYPE_NONE) {
+ __irq_set_trigger(desc, type);
+ desc->handle_irq = handle;
+ }
irq_settings_set_noprobe(desc);
irq_settings_set_norequest(desc);
--
2.1.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE
2016-09-19 8:49 [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE Marc Zyngier
@ 2016-09-19 9:12 ` Thomas Gleixner
2016-09-19 9:19 ` Marc Zyngier
2016-09-19 9:22 ` Geert Uytterhoeven
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Thomas Gleixner @ 2016-09-19 9:12 UTC (permalink / raw)
To: Marc Zyngier; +Cc: linux-kernel, Geert Uytterhoeven
On Mon, 19 Sep 2016, Marc Zyngier wrote:
> There is no point in trying to configure the trigger of a chained
> interrupt if no trigger information has been configured. At best
> this is ignored, and at the worse this confuses the underlying
> irqchip (which is likely not to handle such a thing), and
> unnecessarily alarms the user.
>
> Only apply the configuration if type is not IRQ_TYPE_NONE.
>
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Fixes: 1e12c4a9393b ("genirq: Correctly configure the trigger on chained interrupts")
> Link: https://lkml.kernel.org/r/CAMuHMdVW1eTn20=EtYcJ8hkVwohaSuH_yQXrY2MGBEvZ8fpFOg@mail.gmail.com
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> ---
> kernel/irq/chip.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
> index 6373890..26ba565 100644
> --- a/kernel/irq/chip.c
> +++ b/kernel/irq/chip.c
> @@ -820,6 +820,8 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
> desc->name = name;
>
> if (handle != handle_bad_irq && is_chained) {
> + unsigned int type = irqd_get_trigger_type(&desc->irq_data);
> +
> /*
> * We're about to start this interrupt immediately,
> * hence the need to set the trigger configuration.
> @@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
> * chained interrupt. Reset it immediately because we
> * do know better.
> */
> - __irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
> - desc->handle_irq = handle;
> + if (type != IRQ_TYPE_NONE) {
> + __irq_set_trigger(desc, type);
> + desc->handle_irq = handle;
Are you really sure that the handler should only be set when the trigger
type is != NONE? I seriously doubt that this is correct.
Thanks,
tglx
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE
2016-09-19 9:12 ` Thomas Gleixner
@ 2016-09-19 9:19 ` Marc Zyngier
2016-09-19 9:28 ` Thomas Gleixner
0 siblings, 1 reply; 10+ messages in thread
From: Marc Zyngier @ 2016-09-19 9:19 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: linux-kernel, Geert Uytterhoeven
On 19/09/16 10:12, Thomas Gleixner wrote:
> On Mon, 19 Sep 2016, Marc Zyngier wrote:
>> There is no point in trying to configure the trigger of a chained
>> interrupt if no trigger information has been configured. At best
>> this is ignored, and at the worse this confuses the underlying
>> irqchip (which is likely not to handle such a thing), and
>> unnecessarily alarms the user.
>>
>> Only apply the configuration if type is not IRQ_TYPE_NONE.
>>
>> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
>> Fixes: 1e12c4a9393b ("genirq: Correctly configure the trigger on chained interrupts")
>> Link: https://lkml.kernel.org/r/CAMuHMdVW1eTn20=EtYcJ8hkVwohaSuH_yQXrY2MGBEvZ8fpFOg@mail.gmail.com
>> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
>> ---
>> kernel/irq/chip.c | 8 ++++++--
>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
>> index 6373890..26ba565 100644
>> --- a/kernel/irq/chip.c
>> +++ b/kernel/irq/chip.c
>> @@ -820,6 +820,8 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
>> desc->name = name;
>>
>> if (handle != handle_bad_irq && is_chained) {
>> + unsigned int type = irqd_get_trigger_type(&desc->irq_data);
>> +
>> /*
>> * We're about to start this interrupt immediately,
>> * hence the need to set the trigger configuration.
>> @@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
>> * chained interrupt. Reset it immediately because we
>> * do know better.
>> */
>> - __irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
>> - desc->handle_irq = handle;
>> + if (type != IRQ_TYPE_NONE) {
>> + __irq_set_trigger(desc, type);
>> + desc->handle_irq = handle;
>
> Are you really sure that the handler should only be set when the trigger
> type is != NONE? I seriously doubt that this is correct.
The handler has already been set outside of if() statement (at line
819). Here, we only set it again if we've actually called
__irq_set_trigger() which could have changed it to something that takes
the type into account (handle_level_irq or handle_edge_irq, for example).
Thanks,
M.
--
Jazz is not dead. It just smells funny...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE
2016-09-19 8:49 [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE Marc Zyngier
2016-09-19 9:12 ` Thomas Gleixner
@ 2016-09-19 9:22 ` Geert Uytterhoeven
2016-09-19 9:40 ` [tip:irq/urgent] genirq: Skip chained interrupt trigger setup " tip-bot for Marc Zyngier
2016-09-19 23:09 ` tip-bot for Marc Zyngier
3 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2016-09-19 9:22 UTC (permalink / raw)
To: Marc Zyngier; +Cc: Thomas Gleixner, linux-kernel
Hi Marc,
On Mon, Sep 19, 2016 at 10:49 AM, Marc Zyngier <marc.zyngier@arm.com> wrote:
> There is no point in trying to configure the trigger of a chained
> interrupt if no trigger information has been configured. At best
> this is ignored, and at the worse this confuses the underlying
> irqchip (which is likely not to handle such a thing), and
> unnecessarily alarms the user.
>
> Only apply the configuration if type is not IRQ_TYPE_NONE.
Thanks!
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Fixes: 1e12c4a9393b ("genirq: Correctly configure the trigger on chained interrupts")
> Link: https://lkml.kernel.org/r/CAMuHMdVW1eTn20=EtYcJ8hkVwohaSuH_yQXrY2MGBEvZ8fpFOg@mail.gmail.com
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE
2016-09-19 9:19 ` Marc Zyngier
@ 2016-09-19 9:28 ` Thomas Gleixner
2016-09-19 9:30 ` Thomas Gleixner
2016-09-19 9:32 ` Geert Uytterhoeven
0 siblings, 2 replies; 10+ messages in thread
From: Thomas Gleixner @ 2016-09-19 9:28 UTC (permalink / raw)
To: Marc Zyngier; +Cc: linux-kernel, Geert Uytterhoeven
On Mon, 19 Sep 2016, Marc Zyngier wrote:
> On 19/09/16 10:12, Thomas Gleixner wrote:
> > On Mon, 19 Sep 2016, Marc Zyngier wrote:
> >> if (handle != handle_bad_irq && is_chained) {
> >> + unsigned int type = irqd_get_trigger_type(&desc->irq_data);
> >> +
> >> /*
> >> * We're about to start this interrupt immediately,
> >> * hence the need to set the trigger configuration.
> >> @@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
> >> * chained interrupt. Reset it immediately because we
> >> * do know better.
> >> */
> >> - __irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
> >> - desc->handle_irq = handle;
> >> + if (type != IRQ_TYPE_NONE) {
> >> + __irq_set_trigger(desc, type);
> >> + desc->handle_irq = handle;
> >
> > Are you really sure that the handler should only be set when the trigger
> > type is != NONE? I seriously doubt that this is correct.
>
> The handler has already been set outside of if() statement (at line
> 819). Here, we only set it again if we've actually called
> __irq_set_trigger() which could have changed it to something that takes
> the type into account (handle_level_irq or handle_edge_irq, for example).
Ah. I'll add a comment...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE
2016-09-19 9:28 ` Thomas Gleixner
@ 2016-09-19 9:30 ` Thomas Gleixner
2016-09-19 9:32 ` Geert Uytterhoeven
1 sibling, 0 replies; 10+ messages in thread
From: Thomas Gleixner @ 2016-09-19 9:30 UTC (permalink / raw)
To: Marc Zyngier; +Cc: linux-kernel, Geert Uytterhoeven
On Mon, 19 Sep 2016, Thomas Gleixner wrote:
> On Mon, 19 Sep 2016, Marc Zyngier wrote:
> > On 19/09/16 10:12, Thomas Gleixner wrote:
> > > On Mon, 19 Sep 2016, Marc Zyngier wrote:
> > >> if (handle != handle_bad_irq && is_chained) {
> > >> + unsigned int type = irqd_get_trigger_type(&desc->irq_data);
> > >> +
> > >> /*
> > >> * We're about to start this interrupt immediately,
> > >> * hence the need to set the trigger configuration.
> > >> @@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
> > >> * chained interrupt. Reset it immediately because we
> > >> * do know better.
> > >> */
> > >> - __irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
> > >> - desc->handle_irq = handle;
> > >> + if (type != IRQ_TYPE_NONE) {
> > >> + __irq_set_trigger(desc, type);
> > >> + desc->handle_irq = handle;
> > >
> > > Are you really sure that the handler should only be set when the trigger
> > > type is != NONE? I seriously doubt that this is correct.
> >
> > The handler has already been set outside of if() statement (at line
> > 819). Here, we only set it again if we've actually called
> > __irq_set_trigger() which could have changed it to something that takes
> > the type into account (handle_level_irq or handle_edge_irq, for example).
>
> Ah. I'll add a comment...
Bah. There is one already. Reading patches before being awake seems not to
be a brilliant idea.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE
2016-09-19 9:28 ` Thomas Gleixner
2016-09-19 9:30 ` Thomas Gleixner
@ 2016-09-19 9:32 ` Geert Uytterhoeven
1 sibling, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2016-09-19 9:32 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: Marc Zyngier, linux-kernel
Hi Thomas,
On Mon, Sep 19, 2016 at 11:28 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Mon, 19 Sep 2016, Marc Zyngier wrote:
>> On 19/09/16 10:12, Thomas Gleixner wrote:
>> > On Mon, 19 Sep 2016, Marc Zyngier wrote:
>> >> if (handle != handle_bad_irq && is_chained) {
>> >> + unsigned int type = irqd_get_trigger_type(&desc->irq_data);
>> >> +
>> >> /*
>> >> * We're about to start this interrupt immediately,
>> >> * hence the need to set the trigger configuration.
>> >> @@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
>> >> * chained interrupt. Reset it immediately because we
>> >> * do know better.
>> >> */
>> >> - __irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
>> >> - desc->handle_irq = handle;
>> >> + if (type != IRQ_TYPE_NONE) {
>> >> + __irq_set_trigger(desc, type);
>> >> + desc->handle_irq = handle;
>> >
>> > Are you really sure that the handler should only be set when the trigger
>> > type is != NONE? I seriously doubt that this is correct.
>>
>> The handler has already been set outside of if() statement (at line
>> 819). Here, we only set it again if we've actually called
>> __irq_set_trigger() which could have changed it to something that takes
>> the type into account (handle_level_irq or handle_edge_irq, for example).
>
> Ah. I'll add a comment...
The comment is already there ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 10+ messages in thread
* [tip:irq/urgent] genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE
2016-09-19 8:49 [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE Marc Zyngier
2016-09-19 9:12 ` Thomas Gleixner
2016-09-19 9:22 ` Geert Uytterhoeven
@ 2016-09-19 9:40 ` tip-bot for Marc Zyngier
2016-09-19 23:09 ` tip-bot for Marc Zyngier
3 siblings, 0 replies; 10+ messages in thread
From: tip-bot for Marc Zyngier @ 2016-09-19 9:40 UTC (permalink / raw)
To: linux-tip-commits; +Cc: mingo, geert, marc.zyngier, linux-kernel, hpa, tglx
Commit-ID: 1984e075915cbae65336a99b1879865080d8e55e
Gitweb: http://git.kernel.org/tip/1984e075915cbae65336a99b1879865080d8e55e
Author: Marc Zyngier <marc.zyngier@arm.com>
AuthorDate: Mon, 19 Sep 2016 09:49:27 +0100
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Mon, 19 Sep 2016 11:31:36 +0200
genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE
There is no point in trying to configure the trigger of a chained
interrupt if no trigger information has been configured. At best
this is ignored, and at the worse this confuses the underlying
irqchip (which is likely not to handle such a thing), and
unnecessarily alarms the user.
Only apply the configuration if type is not IRQ_TYPE_NONE.
Fixes: 1e12c4a9393b ("genirq: Correctly configure the trigger on chained interrupts")
Reported-and-tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/CAMuHMdVW1eTn20=EtYcJ8hkVwohaSuH_yQXrY2MGBEvZ8fpFOg@mail.gmail.com
Link: http://lkml.kernel.org/r/1474274967-15984-1-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
kernel/irq/chip.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 6373890..26ba565 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -820,6 +820,8 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
desc->name = name;
if (handle != handle_bad_irq && is_chained) {
+ unsigned int type = irqd_get_trigger_type(&desc->irq_data);
+
/*
* We're about to start this interrupt immediately,
* hence the need to set the trigger configuration.
@@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
* chained interrupt. Reset it immediately because we
* do know better.
*/
- __irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
- desc->handle_irq = handle;
+ if (type != IRQ_TYPE_NONE) {
+ __irq_set_trigger(desc, type);
+ desc->handle_irq = handle;
+ }
irq_settings_set_noprobe(desc);
irq_settings_set_norequest(desc);
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [tip:irq/urgent] genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE
2016-09-19 8:49 [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE Marc Zyngier
` (2 preceding siblings ...)
2016-09-19 9:40 ` [tip:irq/urgent] genirq: Skip chained interrupt trigger setup " tip-bot for Marc Zyngier
@ 2016-09-19 23:09 ` tip-bot for Marc Zyngier
2016-09-19 23:41 ` Thomas Gleixner
3 siblings, 1 reply; 10+ messages in thread
From: tip-bot for Marc Zyngier @ 2016-09-19 23:09 UTC (permalink / raw)
To: linux-tip-commits; +Cc: geert, linux-kernel, marc.zyngier, hpa, tglx, mingo
Commit-ID: e2a5069355e5e3c0644a831d3e690049c4d0624b
Gitweb: http://git.kernel.org/tip/e2a5069355e5e3c0644a831d3e690049c4d0624b
Author: Marc Zyngier <marc.zyngier@arm.com>
AuthorDate: Mon, 19 Sep 2016 09:49:27 +0100
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 20 Sep 2016 01:04:49 +0200
genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE
There is no point in trying to configure the trigger of a chained
interrupt if no trigger information has been configured. At best
this is ignored, and at the worse this confuses the underlying
irqchip (which is likely not to handle such a thing), and
unnecessarily alarms the user.
Only apply the configuration if type is not IRQ_TYPE_NONE.
Fixes: 1e12c4a9393b ("genirq: Correctly configure the trigger on chained interrupts")
Reported-and-tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/CAMuHMdVW1eTn20=EtYcJ8hkVwohaSuH_yQXrY2MGBEvZ8fpFOg@mail.gmail.com
Link: http://lkml.kernel.org/r/1474274967-15984-1-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
drivers/irqchip/irq-gic-v3.c | 7 ++++---
kernel/irq/chip.c | 8 ++++++--
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index ede5672..da6c0ba 100644
--- a/drivers/irqchip/irq-gic-v3.c
+++ b/drivers/irqchip/irq-gic-v3.c
@@ -548,7 +548,7 @@ static int gic_starting_cpu(unsigned int cpu)
static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask,
unsigned long cluster_id)
{
- int cpu = *base_cpu;
+ int next_cpu, cpu = *base_cpu;
unsigned long mpidr = cpu_logical_map(cpu);
u16 tlist = 0;
@@ -562,9 +562,10 @@ static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask,
tlist |= 1 << (mpidr & 0xf);
- cpu = cpumask_next(cpu, mask);
- if (cpu >= nr_cpu_ids)
+ next_cpu = cpumask_next(cpu, mask);
+ if (next_cpu >= nr_cpu_ids)
goto out;
+ cpu = next_cpu;
mpidr = cpu_logical_map(cpu);
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 6373890..26ba565 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -820,6 +820,8 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
desc->name = name;
if (handle != handle_bad_irq && is_chained) {
+ unsigned int type = irqd_get_trigger_type(&desc->irq_data);
+
/*
* We're about to start this interrupt immediately,
* hence the need to set the trigger configuration.
@@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
* chained interrupt. Reset it immediately because we
* do know better.
*/
- __irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
- desc->handle_irq = handle;
+ if (type != IRQ_TYPE_NONE) {
+ __irq_set_trigger(desc, type);
+ desc->handle_irq = handle;
+ }
irq_settings_set_noprobe(desc);
irq_settings_set_norequest(desc);
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [tip:irq/urgent] genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE
2016-09-19 23:09 ` tip-bot for Marc Zyngier
@ 2016-09-19 23:41 ` Thomas Gleixner
0 siblings, 0 replies; 10+ messages in thread
From: Thomas Gleixner @ 2016-09-19 23:41 UTC (permalink / raw)
To: hpa, mingo, geert, marc.zyngier, linux-kernel; +Cc: linux-tip-commits
On Mon, 19 Sep 2016, tip-bot for Marc Zyngier wrote:
> Commit-ID: e2a5069355e5e3c0644a831d3e690049c4d0624b
> Gitweb: http://git.kernel.org/tip/e2a5069355e5e3c0644a831d3e690049c4d0624b
> Author: Marc Zyngier <marc.zyngier@arm.com>
> AuthorDate: Mon, 19 Sep 2016 09:49:27 +0100
> Committer: Thomas Gleixner <tglx@linutronix.de>
> CommitDate: Tue, 20 Sep 2016 01:04:49 +0200
>
> genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE
Bah. I completely fatfingered that one ... Fixing.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2016-09-19 23:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 8:49 [PATCH] genirq: Skip chained interrupt trigger configuration if type is IRQ_TYPE_NONE Marc Zyngier
2016-09-19 9:12 ` Thomas Gleixner
2016-09-19 9:19 ` Marc Zyngier
2016-09-19 9:28 ` Thomas Gleixner
2016-09-19 9:30 ` Thomas Gleixner
2016-09-19 9:32 ` Geert Uytterhoeven
2016-09-19 9:22 ` Geert Uytterhoeven
2016-09-19 9:40 ` [tip:irq/urgent] genirq: Skip chained interrupt trigger setup " tip-bot for Marc Zyngier
2016-09-19 23:09 ` tip-bot for Marc Zyngier
2016-09-19 23:41 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).