* [PATCH] crypto: talitos: request irq after tasklet_init()
@ 2026-09-04 21:12 Rosen Penev
2026-09-16 12:39 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2026-09-04 21:12 UTC (permalink / raw)
To: linux-crypto; +Cc: Herbert Xu, David S. Miller, open list
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.
Move talitos_probe_irq() after the tasklet_init() calls so the
tasklets are fully set up before interrupts are enabled. This matches
remove(), which frees the IRQs before killing the tasklets.
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/crypto/talitos.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index 41a87d7c30a0..da08cf9615c9 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -3481,10 +3481,6 @@ static int talitos_probe(struct platform_device *ofdev)
stride = TALITOS2_CH_STRIDE;
}
- err = talitos_probe_irq(ofdev);
- if (err)
- goto err_out;
-
if (has_ftr_sec1(priv)) {
if (priv->num_channels == 1)
tasklet_init(&priv->done_task[0], talitos1_done_ch0,
@@ -3507,6 +3503,10 @@ static int talitos_probe(struct platform_device *ofdev)
}
}
+ err = talitos_probe_irq(ofdev);
+ if (err)
+ goto err_out;
+
priv->fifo_len = roundup_pow_of_two(priv->chfifo_len);
for (i = 0; i < priv->num_channels; i++) {
--
2.55.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: talitos: request irq after tasklet_init()
2026-09-04 21:12 [PATCH] crypto: talitos: request irq after tasklet_init() Rosen Penev
@ 2026-09-16 12:39 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2026-09-16 12:39 UTC (permalink / raw)
To: Rosen Penev; +Cc: linux-crypto, davem, linux-kernel
Rosen Penev <rosenp@gmail.com> 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.
>
> Move talitos_probe_irq() after the tasklet_init() calls so the
> tasklets are fully set up before interrupts are enabled. This matches
> remove(), which frees the IRQs before killing the tasklets.
>
> Assisted-by: opencode:big-pickle
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
> drivers/crypto/talitos.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Please have a look at
https://sashiko.dev/#/patchset/20260904211230.81963-1-rosenp%40gmail.com
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-16 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 21:12 [PATCH] crypto: talitos: request irq after tasklet_init() Rosen Penev
2026-09-16 12:39 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®