[PATCH] crypto: amlogic: Fix IRQ handler return value and fallthrough logic
Mohamad Raizudeen
raizudeen.kerneldev at gmail.com
Fri Sep 18 02:48:23 PDT 2026
On Fri, Sep 18, 2026 at 06:52:05PM +1000, Herbert Xu wrote:
> On Tue, Sep 08, 2026 at 09:31:20PM +0530, Mohamad Raizudeen wrote:
> > In irqreturn_t_meson_irq_handler(), when an interrupt matches a flow
> > but the status register is empty, the driver prints an error but
> > doesn't return. It falls through the loop and incorrectly prints an
> > `unknown irq` message.
> >
> > Fix this by returning IRQ_HANDLED immediately after the error print.
> >
> > Additionally, the handler returns IRQ_HANDLED for genuinely unknown
> > interrupts. This masks false interrupts and prevents the kernel from
> > detecting interrupts. Return IRQ_NONE instead for unhandled
> > interrupts.
> >
> > Cc: stable at vger.kernel.org
> > Fixes: 48fe583fe5417 ("crypto: amlogic - Add crypto accelerator for amlogic GXL")
> > Signed-off-by: Mohamad Raizudeen <raizudeen.kerneldev at gmail.com>
> > ---
> > drivers/crypto/amlogic/amlogic-gxl-core.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
>
> Please check
>
> https://sashiko.dev/#/patchset/20260908160120.4805-1-raizudeen.kerneldev%40gmail.com
>
> Thanks,
> --
> Email: Herbert Xu <herbert at gondor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Hi Herbert,
Thank you for pointing out. I will send the v2 soon.
Thanks,
Mohamad Raizudeen
More information about the linux-amlogic
mailing list