[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241203084409.2747897-1-abhijit.gangurde@amd.com>
Date: Tue, 3 Dec 2024 14:14:08 +0530
From: Abhijit Gangurde <abhijit.gangurde@....com>
To: <nikhil.agarwal@....com>, <Nipun.Gupta@....com>
CC: <gregkh@...uxfoundation.org>, <linux-kernel@...r.kernel.org>,
<michal.simek@....com>, <git@....com>, Abhijit Gangurde
<abhijit.gangurde@....com>
Subject: [PATCH v2 1/2] cdx: register shutdown callback for cdx controller
register shutdown callback for cdx controller platform device
to handle graceful connection closure of rpmsg transport.
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@....com>
---
Changes v1->v2:
- Split single patch into two
drivers/cdx/controller/cdx_controller.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/cdx/controller/cdx_controller.c b/drivers/cdx/controller/cdx_controller.c
index 201f9a6fbde7..d0d65fa7bbb2 100644
--- a/drivers/cdx/controller/cdx_controller.c
+++ b/drivers/cdx/controller/cdx_controller.c
@@ -236,6 +236,11 @@ static void xlnx_cdx_remove(struct platform_device *pdev)
kfree(cdx_mcdi);
}
+static void xlnx_cdx_shutdown(struct platform_device *pdev)
+{
+ cdx_destroy_rpmsg(pdev);
+}
+
static const struct of_device_id cdx_match_table[] = {
{.compatible = "xlnx,versal-net-cdx",},
{ },
@@ -251,6 +256,7 @@ static struct platform_driver cdx_pdriver = {
},
.probe = xlnx_cdx_probe,
.remove_new = xlnx_cdx_remove,
+ .shutdown = xlnx_cdx_shutdown,
};
static int __init cdx_controller_init(void)
--
2.25.1
Powered by blists - more mailing lists