* [PATCH] crypto: rockchip: pass crypto_info to irq handler
@ 2026-08-11 4:49 Rosen Penev
2026-09-04 9:55 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2026-08-11 4:49 UTC (permalink / raw)
To: linux-crypto
Cc: Corentin Labbe, Herbert Xu, David S. Miller, Heiko Stuebner,
moderated list:ARM/Rockchip SoC support,
open list:ARM/Rockchip SoC support, open list
The irq handler takes the platform device and calls
platform_get_drvdata() to recover the driver data. Pass the
driver data directly as the devm_request_irq() argument instead,
dropping the platform_get_drvdata() call.
Assisted-by: opencode:deepseek-v4-flash-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/crypto/rockchip/rk3288_crypto.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/rockchip/rk3288_crypto.c b/drivers/crypto/rockchip/rk3288_crypto.c
index 7cb1316b6f18..b2b629fffc05 100644
--- a/drivers/crypto/rockchip/rk3288_crypto.c
+++ b/drivers/crypto/rockchip/rk3288_crypto.c
@@ -163,7 +163,7 @@ static void rk_crypto_pm_exit(struct rk_crypto_info *rkdev)
static irqreturn_t rk_crypto_irq_handle(int irq, void *dev_id)
{
- struct rk_crypto_info *dev = platform_get_drvdata(dev_id);
+ struct rk_crypto_info *dev = dev_id;
u32 interrupt_status;
interrupt_status = CRYPTO_READ(dev, RK_CRYPTO_INTSTS);
@@ -363,7 +363,7 @@ static int rk_crypto_probe(struct platform_device *pdev)
err = devm_request_irq(&pdev->dev, crypto_info->irq,
rk_crypto_irq_handle, IRQF_SHARED,
- "rk-crypto", pdev);
+ "rk-crypto", crypto_info);
if (err)
goto err_crypto;
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: rockchip: pass crypto_info to irq handler
2026-08-11 4:49 [PATCH] crypto: rockchip: pass crypto_info to irq handler Rosen Penev
@ 2026-09-04 9:55 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2026-09-04 9:55 UTC (permalink / raw)
To: Rosen Penev
Cc: linux-crypto, Corentin Labbe, David S. Miller, Heiko Stuebner,
moderated list:ARM/Rockchip SoC support,
open list:ARM/Rockchip SoC support, open list
On Mon, Aug 10, 2026 at 09:49:16PM -0700, Rosen Penev wrote:
> The irq handler takes the platform device and calls
> platform_get_drvdata() to recover the driver data. Pass the
> driver data directly as the devm_request_irq() argument instead,
> dropping the platform_get_drvdata() call.
>
> Assisted-by: opencode:deepseek-v4-flash-free
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
> drivers/crypto/rockchip/rk3288_crypto.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Patch applied. 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-04 9:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11 4:49 [PATCH] crypto: rockchip: pass crypto_info to irq handler Rosen Penev
2026-09-04 9:55 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox