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>, <git@amd.com>,
Abhijit Gangurde <abhijit.gangurde@amd.com>,
Nikhil Agarwal <Nikhil.agarwal@amd.com>
Subject: [PATCH v3 1/1] cdx: register shutdown callback for cdx controller
Date: Tue, 7 Jul 2026 15:25:55 +0530 [thread overview]
Message-ID: <20260707095555.3939295-16-abhijit.gangurde@amd.com> (raw)
In-Reply-To: <20260707095555.3939295-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 280bb7490c0f..2295b8bfe87e 100644
--- a/drivers/cdx/controller/cdx_controller.c
+++ b/drivers/cdx/controller/cdx_controller.c
@@ -234,6 +234,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",},
{ },
@@ -248,6 +253,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-07-07 9:57 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 9:55 [PATCH v3 0/1] " Abhijit Gangurde
2024-12-03 8:44 ` [PATCH v2 1/2] " Abhijit Gangurde
2024-12-03 8:44 ` [PATCH v2 2/2] cdx: disable cdx bus from bus shutdown callback Abhijit Gangurde
2024-12-10 7:05 ` [PATCH v2 1/2] cdx: register shutdown callback for cdx controller Agarwal, Nikhil
2026-07-07 9:55 ` Abhijit Gangurde
2026-07-07 9:55 ` [PATCH 1/1] RDMA/ionic: Preserve and set Ethernet source MAC after ib_ud_header_init() Abhijit Gangurde
2026-07-07 9:55 ` [PATCH 1/1] RDMA/ionic: Reserve bytes in CQE format for future use Abhijit Gangurde
2026-07-07 9:55 ` [PATCH 1/1] RDMA/ionic: map PHC state into user space Abhijit Gangurde
2026-07-07 9:55 ` [PATCH 1/1] RDMA/ionic: simplify rq_meta allocation Abhijit Gangurde
2026-07-07 9:55 ` [PATCH v3 1/1] cdx: register shutdown callback for cdx controller Abhijit Gangurde
2026-07-07 9:55 ` [PATCH 1/4] net: ionic: update LIF identity for RDMA SRQ capability Abhijit Gangurde
2026-07-07 9:55 ` [PATCH 2/4] RDMA/ionic: segregate rq related fields from ionic_qp into a new ionic_rq struct Abhijit Gangurde
2026-07-07 9:55 ` [PATCH 3/4] RDMA/ionic: add Shared receive queue (SRQ) support Abhijit Gangurde
2026-07-07 9:55 ` [PATCH 4/4] RDMA/ionic: implement SRQ event handling support Abhijit Gangurde
2026-07-07 9:55 ` [PATCH v3 0/1] cdx: register shutdown callback for cdx controller Abhijit Gangurde
2026-07-07 9:55 ` [PATCH v3 1/1] " Abhijit Gangurde
2026-07-07 9:55 ` [PATCH v99 1/1] One more fix Abhijit Gangurde
2026-07-07 10:06 ` Greg KH
2026-07-07 10:13 ` Abhijit Gangurde
2026-07-07 9:55 ` [PATCH v99 1/1] merge me Abhijit Gangurde
2026-07-07 9:55 ` [PATCH v3 0/1] cdx: register shutdown callback for cdx controller Abhijit Gangurde
2026-07-07 9:55 ` Abhijit Gangurde [this message]
2026-07-07 10:06 ` Michal Simek
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=20260707095555.3939295-16-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 \
/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®