diff options
author | Gaurav Jain <gaurav.jain@nxp.com> | 2023-03-16 07:07:34 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-03-24 11:22:28 +0100 |
commit | c007e720989e3a39923d7707b9e625c1f89abb2c (patch) | |
tree | 76a3b20f206bc607471a903175e765e90d31ba46 /drivers/crypto/caam | |
parent | crypto: ccree - Depend on HAS_IOMEM (diff) | |
download | linux-c007e720989e3a39923d7707b9e625c1f89abb2c.tar.xz linux-c007e720989e3a39923d7707b9e625c1f89abb2c.zip |
crypto: caam/jr - add .shutdown hook
add .shutdown hook in caam_jr driver to support kexec boot
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Tested-by: Vijay Balakrishna <vijayb@linux.microsoft.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r-- | drivers/crypto/caam/jr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/caam/jr.c b/drivers/crypto/caam/jr.c index eb3b9a7e9a35..96dea5304d22 100644 --- a/drivers/crypto/caam/jr.c +++ b/drivers/crypto/caam/jr.c @@ -198,6 +198,11 @@ static int caam_jr_remove(struct platform_device *pdev) return ret; } +static void caam_jr_platform_shutdown(struct platform_device *pdev) +{ + caam_jr_remove(pdev); +} + /* Main per-ring interrupt handler */ static irqreturn_t caam_jr_interrupt(int irq, void *st_dev) { @@ -653,6 +658,7 @@ static struct platform_driver caam_jr_driver = { }, .probe = caam_jr_probe, .remove = caam_jr_remove, + .shutdown = caam_jr_platform_shutdown, }; static int __init jr_driver_init(void) |