Re: [PATCHv2] crypto: talitos: fix probe IRQ ordering
From: Herbert Xu
Date: Fri Oct 02 2026 - 03:59:55 EST
On Thu, Sep 24, 2026 at 04:51:19PM -0700, Rosen Penev wrote:
> The talitos interrupt handlers schedule priv->done_task[] via
> tasklet_schedule(). In probe(), talitos_probe_irq() ran before
> tasklet_init(), so an interrupt arriving during that window (a shared
> IRQ, or a completion pending from an earlier transmission) would
> schedule an uninitialized tasklet.
>
> Resolve the IRQ numbers before the tasklet_init() calls so the
> done_task[] selection can see the secondary IRQ, and only request the
> IRQs after the channel fifos are allocated and the device is
> initialized. Every structure the handlers touch is then fully set up
> before interrupts are enabled. This matches remove(), which frees the
> IRQs before killing the tasklets.
>
> Assisted-by: LLM
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> v2: reshuffle code to avoid NULL derefs
> drivers/crypto/talitos.c | 33 +++++++++++++++++++++++----------
> 1 file changed, 23 insertions(+), 10 deletions(-)
Please check
https://sashiko.dev/#/patchset/20260924235119.141323-1-rosenp%40gmail.com
Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt