drivers/crypto/s5p-sss.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
The threaded 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_threaded_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/s5p-sss.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c
index bdda7b39af85..f20c02e9d646 100644
--- a/drivers/crypto/s5p-sss.c
+++ b/drivers/crypto/s5p-sss.c
@@ -638,8 +638,7 @@ static int s5p_hash_rx(struct s5p_aes_dev *dev)
static irqreturn_t s5p_aes_interrupt(int irq, void *dev_id)
{
- struct platform_device *pdev = dev_id;
- struct s5p_aes_dev *dev = platform_get_drvdata(pdev);
+ struct s5p_aes_dev *dev = dev_id;
struct skcipher_request *req;
int err_dma_tx = 0;
int err_dma_rx = 0;
@@ -2221,7 +2220,7 @@ static int s5p_aes_probe(struct platform_device *pdev)
}
err = devm_request_threaded_irq(dev, pdata->irq_fc, NULL,
s5p_aes_interrupt, IRQF_ONESHOT,
- pdev->name, pdev);
+ pdev->name, pdata);
if (err < 0) {
dev_warn(dev, "feed control interrupt is not available.\n");
goto err_irq;
--
2.55.0
On Mon, Aug 10, 2026 at 09:33:58PM -0700, Rosen Penev wrote: > The threaded 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_threaded_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/s5p-sss.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 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
On 8/11/26 07:33, Rosen Penev wrote:
> The threaded 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_threaded_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/s5p-sss.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c
> index bdda7b39af85..f20c02e9d646 100644
> --- a/drivers/crypto/s5p-sss.c
> +++ b/drivers/crypto/s5p-sss.c
> @@ -638,8 +638,7 @@ static int s5p_hash_rx(struct s5p_aes_dev *dev)
>
> static irqreturn_t s5p_aes_interrupt(int irq, void *dev_id)
> {
> - struct platform_device *pdev = dev_id;
> - struct s5p_aes_dev *dev = platform_get_drvdata(pdev);
> + struct s5p_aes_dev *dev = dev_id;
> struct skcipher_request *req;
> int err_dma_tx = 0;
> int err_dma_rx = 0;
> @@ -2221,7 +2220,7 @@ static int s5p_aes_probe(struct platform_device *pdev)
> }
> err = devm_request_threaded_irq(dev, pdata->irq_fc, NULL,
> s5p_aes_interrupt, IRQF_ONESHOT,
> - pdev->name, pdev);
> + pdev->name, pdata);
> if (err < 0) {
> dev_warn(dev, "feed control interrupt is not available.\n");
> goto err_irq;
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
--
Best wishes,
Vladimir
On 11/08/2026 06.33, Rosen Penev wrote:
> The threaded 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_threaded_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/s5p-sss.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c
> index bdda7b39af85..f20c02e9d646 100644
> --- a/drivers/crypto/s5p-sss.c
> +++ b/drivers/crypto/s5p-sss.c
> @@ -638,8 +638,7 @@ static int s5p_hash_rx(struct s5p_aes_dev *dev)
>
> static irqreturn_t s5p_aes_interrupt(int irq, void *dev_id)
> {
> - struct platform_device *pdev = dev_id;
> - struct s5p_aes_dev *dev = platform_get_drvdata(pdev);
> + struct s5p_aes_dev *dev = dev_id;
> struct skcipher_request *req;
> int err_dma_tx = 0;
> int err_dma_rx = 0;
> @@ -2221,7 +2220,7 @@ static int s5p_aes_probe(struct platform_device *pdev)
> }
> err = devm_request_threaded_irq(dev, pdata->irq_fc, NULL,
> s5p_aes_interrupt, IRQF_ONESHOT,
> - pdev->name, pdev);
> + pdev->name, pdata);
> if (err < 0) {
> dev_warn(dev, "feed control interrupt is not available.\n");
> goto err_irq;
Reviewed-by: Thomas Huth <thuth@redhat.com>
© 2016 - 2026 Red Hat, Inc.