[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230316060734.818549-1-meenakshi.aggarwal@nxp.com>
Date: Thu, 16 Mar 2023 11:37:34 +0530
From: meenakshi.aggarwal@....com
To: horia.geanta@....com, V.sethi@....com, pankaj.gupta@....com,
gaurav.jain@....com, herbert@...dor.apana.org.au,
davem@...emloft.net, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, franck.lenormand@....com
Cc: vijayb@...ux.microsoft.com, code@...icks.com
Subject: [PATCH v2] drivers: crypto: caam: jr: add .shutdown hook
From: Gaurav Jain <gaurav.jain@....com>
add .shutdown hook in caam_jr driver to support kexec boot
Signed-off-by: Gaurav Jain <gaurav.jain@....com>
Tested-by: Vijay Balakrishna <vijayb@...ux.microsoft.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@....com>
---
changes in v2:
- corrected alignment
drivers/crypto/caam/jr.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/crypto/caam/jr.c b/drivers/crypto/caam/jr.c
index 8745fe3cb575..28aef9ba8eac 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)
--
2.25.1
Powered by blists - more mailing lists