* [PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT
@ 2021-02-23 8:35 Yang Li
2021-02-23 11:51 ` Andy Shevchenko
0 siblings, 1 reply; 5+ messages in thread
From: Yang Li @ 2021-02-23 8:35 UTC (permalink / raw)
To: mika.westerberg
Cc: andriy.shevchenko, linus.walleij, bgolaszewski, linux-gpio,
linux-acpi, linux-kernel, Yang Li
fixed the following coccicheck:
./drivers/gpio/gpiolib-acpi.c:176:7-27: ERROR: Threaded IRQ with no
primary handler requested without IRQF_ONESHOT
Make sure threaded IRQs without a primary handler are always request
with IRQF_ONESHOT
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/gpio/gpiolib-acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index e37a57d..86efa2d 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -174,7 +174,7 @@ static void acpi_gpiochip_request_irq(struct acpi_gpio_chip *acpi_gpio,
int ret, value;
ret = request_threaded_irq(event->irq, NULL, event->handler,
- event->irqflags, "ACPI:Event", event);
+ event->irqflags | IRQF_ONESHOT, "ACPI:Event", event);
if (ret) {
dev_err(acpi_gpio->chip->parent,
"Failed to setup interrupt handler for %d\n",
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT
2021-02-23 8:35 [PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT Yang Li
@ 2021-02-23 11:51 ` Andy Shevchenko
2021-02-25 15:06 ` Andy Shevchenko
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2021-02-23 11:51 UTC (permalink / raw)
To: Yang Li
Cc: mika.westerberg, linus.walleij, bgolaszewski, linux-gpio,
linux-acpi, linux-kernel
On Tue, Feb 23, 2021 at 04:35:58PM +0800, Yang Li wrote:
> fixed the following coccicheck:
> ./drivers/gpio/gpiolib-acpi.c:176:7-27: ERROR: Threaded IRQ with no
> primary handler requested without IRQF_ONESHOT
>
> Make sure threaded IRQs without a primary handler are always request
> with IRQF_ONESHOT
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
> drivers/gpio/gpiolib-acpi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
> index e37a57d..86efa2d 100644
> --- a/drivers/gpio/gpiolib-acpi.c
> +++ b/drivers/gpio/gpiolib-acpi.c
> @@ -174,7 +174,7 @@ static void acpi_gpiochip_request_irq(struct acpi_gpio_chip *acpi_gpio,
> int ret, value;
>
> ret = request_threaded_irq(event->irq, NULL, event->handler,
> - event->irqflags, "ACPI:Event", event);
> + event->irqflags | IRQF_ONESHOT, "ACPI:Event", event);
> if (ret) {
> dev_err(acpi_gpio->chip->parent,
> "Failed to setup interrupt handler for %d\n",
> --
> 1.8.3.1
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT
2021-02-23 11:51 ` Andy Shevchenko
@ 2021-02-25 15:06 ` Andy Shevchenko
2021-03-01 13:57 ` Bartosz Golaszewski
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2021-02-25 15:06 UTC (permalink / raw)
To: Yang Li
Cc: mika.westerberg, linus.walleij, bgolaszewski, linux-gpio,
linux-acpi, linux-kernel
On Tue, Feb 23, 2021 at 01:51:53PM +0200, Andy Shevchenko wrote:
> On Tue, Feb 23, 2021 at 04:35:58PM +0800, Yang Li wrote:
> > fixed the following coccicheck:
> > ./drivers/gpio/gpiolib-acpi.c:176:7-27: ERROR: Threaded IRQ with no
> > primary handler requested without IRQF_ONESHOT
> >
> > Make sure threaded IRQs without a primary handler are always request
> > with IRQF_ONESHOT
>
> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Bart, I guess I will collect this in my branch and send you a PR.
I have more fixes to that file anyway.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT
2021-02-25 15:06 ` Andy Shevchenko
@ 2021-03-01 13:57 ` Bartosz Golaszewski
2021-03-01 14:30 ` Andy Shevchenko
0 siblings, 1 reply; 5+ messages in thread
From: Bartosz Golaszewski @ 2021-03-01 13:57 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Yang Li, Mika Westerberg, Linus Walleij, linux-gpio,
ACPI Devel Maling List, LKML
On Thu, Feb 25, 2021 at 4:07 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> On Tue, Feb 23, 2021 at 01:51:53PM +0200, Andy Shevchenko wrote:
> > On Tue, Feb 23, 2021 at 04:35:58PM +0800, Yang Li wrote:
> > > fixed the following coccicheck:
> > > ./drivers/gpio/gpiolib-acpi.c:176:7-27: ERROR: Threaded IRQ with no
> > > primary handler requested without IRQF_ONESHOT
> > >
> > > Make sure threaded IRQs without a primary handler are always request
> > > with IRQF_ONESHOT
> >
> > Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> Bart, I guess I will collect this in my branch and send you a PR.
> I have more fixes to that file anyway.
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
Fine with me!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT
2021-03-01 13:57 ` Bartosz Golaszewski
@ 2021-03-01 14:30 ` Andy Shevchenko
0 siblings, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2021-03-01 14:30 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Yang Li, Mika Westerberg, Linus Walleij, linux-gpio,
ACPI Devel Maling List, LKML
On Mon, Mar 01, 2021 at 02:57:53PM +0100, Bartosz Golaszewski wrote:
> On Thu, Feb 25, 2021 at 4:07 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Tue, Feb 23, 2021 at 01:51:53PM +0200, Andy Shevchenko wrote:
> > > On Tue, Feb 23, 2021 at 04:35:58PM +0800, Yang Li wrote:
> > > > fixed the following coccicheck:
> > > > ./drivers/gpio/gpiolib-acpi.c:176:7-27: ERROR: Threaded IRQ with no
> > > > primary handler requested without IRQF_ONESHOT
> > > >
> > > > Make sure threaded IRQs without a primary handler are always request
> > > > with IRQF_ONESHOT
> > >
> > > Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> >
> > Bart, I guess I will collect this in my branch and send you a PR.
> > I have more fixes to that file anyway.
>
> Fine with me!
Good! So, when you have time, please review [1] and I'll send PR for fixes.
[1]: https://lore.kernel.org/linux-gpio/20210225163320.71267-1-andriy.shevchenko@linux.intel.com/T/#u
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-03-01 14:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23 8:35 [PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT Yang Li
2021-02-23 11:51 ` Andy Shevchenko
2021-02-25 15:06 ` Andy Shevchenko
2021-03-01 13:57 ` Bartosz Golaszewski
2021-03-01 14:30 ` Andy Shevchenko
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).