From: Abhijit Gangurde <abhijit.gangurde@amd.com>
To: <nipun.gupta@amd.com>, <nikhil.agarwal@amd.com>
Cc: <gregkh@linuxfoundation.org>, <linux-kernel@vger.kernel.org>,
<michal.simek@amd.com>, <shubhrajyoti.datta@amd.com>,
<git@amd.com>, "Abhijit Gangurde" <abhijit.gangurde@amd.com>,
Nikhil Agarwal <Nikhil.agarwal@amd.com>
Subject: [PATCH v4 1/1] cdx: register shutdown callback for cdx controller
Date: Fri, 27 Nov 2026 15:24:17 +0530 [thread overview]
Message-ID: <20261127095417.282425-2-abhijit.gangurde@amd.com> (raw)
In-Reply-To: <20261127095417.282425-1-abhijit.gangurde@amd.com>
Register shutdown callback for cdx controller platform device
to handle graceful connection closure of rpmsg transport.
Reviewed-by: Nikhil Agarwal <Nikhil.agarwal@amd.com>
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
---
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 960c4f8b6b30..8b7119d056e6 100644
--- a/drivers/cdx/controller/cdx_controller.c
+++ b/drivers/cdx/controller/cdx_controller.c
@@ -233,6 +233,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",},
{ },
@@ -247,6 +252,7 @@ static struct platform_driver cdx_pdriver = {
},
.probe = xlnx_cdx_probe,
.remove = xlnx_cdx_remove,
+ .shutdown = xlnx_cdx_shutdown,
};
module_platform_driver(cdx_pdriver);
--
2.43.0
next prev parent reply other threads:[~2026-11-27 9:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 9:54 [PATCH v4 0/1] " Abhijit Gangurde
2026-11-27 9:54 ` Abhijit Gangurde [this message]
2026-11-27 11:47 ` [PATCH v4 1/1] " Pandey, Radhey Shyam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127095417.282425-2-abhijit.gangurde@amd.com \
--to=abhijit.gangurde@amd.com \
--cc=git@amd.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=nikhil.agarwal@amd.com \
--cc=nipun.gupta@amd.com \
--cc=shubhrajyoti.datta@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®