lkml.org 
[lkml]   [2023]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] drivers: crypto: caam: jr: add .shutdown hook
From


On 2/20/2023 9:40 PM, meenakshi.aggarwal@nxp.com wrote:
> From: Gaurav Jain <gaurav.jain@nxp.com>
>
> 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>

Thanks,
Vijay

> ---
> 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..a2a99d09b4ad 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)

\
 
 \ /
  Last update: 2023-03-27 00:30    [W:0.215 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site