public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mailbox: pcc: Remove spurious IRQF_ONESHOT usage
@ 2026-01-16 14:07 Mark Brown
  2026-01-16 14:28 ` Sudeep Holla
  2026-01-18 20:55 ` Jassi Brar
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Brown @ 2026-01-16 14:07 UTC (permalink / raw)
  To: Sudeep Holla, Jassi Brar
  Cc: Aishwarya TCV, linux-acpi, linux-kernel, Mark Brown

The PCC code currently specifies IRQF_ONESHOT if the interrupt could
potentially be shared but doesn't actually use request_threaded_irq() and
the interrupt handler does not use IRQ_WAKE_THREAD so IRQF_ONESHOT is
never relevant. Since commit aef30c8d569c ("genirq: Warn about using
IRQF_ONESHOT without a threaded handler") specifying it has resulted in a
WARN_ON(), fix this by removing IRQF_ONESHOT.

Reported-by: Aishwarya TCV <Aishwarya.TCV@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/mailbox/pcc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c
index ff292b9e0be9..060489e5ae6d 100644
--- a/drivers/mailbox/pcc.c
+++ b/drivers/mailbox/pcc.c
@@ -552,7 +552,7 @@ static int pcc_startup(struct mbox_chan *chan)
 
 	if (pchan->plat_irq > 0) {
 		irqflags = pcc_chan_plat_irq_can_be_shared(pchan) ?
-						IRQF_SHARED | IRQF_ONESHOT : 0;
+						IRQF_SHARED : 0;
 		rc = devm_request_irq(chan->mbox->dev, pchan->plat_irq, pcc_mbox_irq,
 				      irqflags, MBOX_IRQ_NAME, chan);
 		if (unlikely(rc)) {

---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20260115-mailbox-pcc-non-threaded-irq-1ca29631e051

Best regards,
--  
Mark Brown <broonie@kernel.org>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mailbox: pcc: Remove spurious IRQF_ONESHOT usage
  2026-01-16 14:07 [PATCH] mailbox: pcc: Remove spurious IRQF_ONESHOT usage Mark Brown
@ 2026-01-16 14:28 ` Sudeep Holla
  2026-01-17  2:12   ` lihuisong (C)
  2026-01-18 20:55 ` Jassi Brar
  1 sibling, 1 reply; 4+ messages in thread
From: Sudeep Holla @ 2026-01-16 14:28 UTC (permalink / raw)
  To: Mark Brown
  Cc: Jassi Brar, Sudeep Holla, Aishwarya TCV, linux-acpi, linux-kernel

On Fri, Jan 16, 2026 at 02:07:40PM +0000, Mark Brown wrote:
> The PCC code currently specifies IRQF_ONESHOT if the interrupt could
> potentially be shared but doesn't actually use request_threaded_irq() and
> the interrupt handler does not use IRQ_WAKE_THREAD so IRQF_ONESHOT is
> never relevant. Since commit aef30c8d569c ("genirq: Warn about using
> IRQF_ONESHOT without a threaded handler") specifying it has resulted in a
> WARN_ON(), fix this by removing IRQF_ONESHOT.
>

Looking back, can't think of any reason why we retained IRQF_ONESHOT
when we added IRQF_SHARED. Thanks for spotting and fixing it.

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mailbox: pcc: Remove spurious IRQF_ONESHOT usage
  2026-01-16 14:28 ` Sudeep Holla
@ 2026-01-17  2:12   ` lihuisong (C)
  0 siblings, 0 replies; 4+ messages in thread
From: lihuisong (C) @ 2026-01-17  2:12 UTC (permalink / raw)
  To: Sudeep Holla, Mark Brown
  Cc: Jassi Brar, Aishwarya TCV, linux-acpi, linux-kernel


On 1/16/2026 10:28 PM, Sudeep Holla wrote:
> On Fri, Jan 16, 2026 at 02:07:40PM +0000, Mark Brown wrote:
>> The PCC code currently specifies IRQF_ONESHOT if the interrupt could
>> potentially be shared but doesn't actually use request_threaded_irq() and
>> the interrupt handler does not use IRQ_WAKE_THREAD so IRQF_ONESHOT is
>> never relevant. Since commit aef30c8d569c ("genirq: Warn about using
>> IRQF_ONESHOT without a threaded handler") specifying it has resulted in a
>> WARN_ON(), fix this by removing IRQF_ONESHOT.
>>
> Looking back, can't think of any reason why we retained IRQF_ONESHOT
> when we added IRQF_SHARED. Thanks for spotting and fixing it.
>
> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
The interrupt status of channel is cleared by bit first in pcc_mbox_irq.
And it is a hard irq handler.
Rmoving IRQF_ONESHOT looks good to me. Thanks for fixing it.

Acked-by: lihuisong@huawei.com
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mailbox: pcc: Remove spurious IRQF_ONESHOT usage
  2026-01-16 14:07 [PATCH] mailbox: pcc: Remove spurious IRQF_ONESHOT usage Mark Brown
  2026-01-16 14:28 ` Sudeep Holla
@ 2026-01-18 20:55 ` Jassi Brar
  1 sibling, 0 replies; 4+ messages in thread
From: Jassi Brar @ 2026-01-18 20:55 UTC (permalink / raw)
  To: Mark Brown; +Cc: Sudeep Holla, Aishwarya TCV, linux-acpi, linux-kernel

On Fri, Jan 16, 2026 at 8:07 AM Mark Brown <broonie@kernel.org> wrote:
>
> The PCC code currently specifies IRQF_ONESHOT if the interrupt could
> potentially be shared but doesn't actually use request_threaded_irq() and
> the interrupt handler does not use IRQ_WAKE_THREAD so IRQF_ONESHOT is
> never relevant. Since commit aef30c8d569c ("genirq: Warn about using
> IRQF_ONESHOT without a threaded handler") specifying it has resulted in a
> WARN_ON(), fix this by removing IRQF_ONESHOT.
>
> Reported-by: Aishwarya TCV <Aishwarya.TCV@arm.com>
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
>  drivers/mailbox/pcc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c
> index ff292b9e0be9..060489e5ae6d 100644
> --- a/drivers/mailbox/pcc.c
> +++ b/drivers/mailbox/pcc.c
> @@ -552,7 +552,7 @@ static int pcc_startup(struct mbox_chan *chan)
>
>         if (pchan->plat_irq > 0) {
>                 irqflags = pcc_chan_plat_irq_can_be_shared(pchan) ?
> -                                               IRQF_SHARED | IRQF_ONESHOT : 0;
> +                                               IRQF_SHARED : 0;
>                 rc = devm_request_irq(chan->mbox->dev, pchan->plat_irq, pcc_mbox_irq,
>                                       irqflags, MBOX_IRQ_NAME, chan);
>                 if (unlikely(rc)) {
>
> ---
> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
> change-id: 20260115-mailbox-pcc-non-threaded-irq-1ca29631e051
>
> Best regards,
> --
> Mark Brown <broonie@kernel.org>
>
Applied to mailbox/for-next.
Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-18 20:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 14:07 [PATCH] mailbox: pcc: Remove spurious IRQF_ONESHOT usage Mark Brown
2026-01-16 14:28 ` Sudeep Holla
2026-01-17  2:12   ` lihuisong (C)
2026-01-18 20:55 ` Jassi Brar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox