From: Peng Fan <peng.fan@oss.nxp.com>
To: Harini T <harini.t@amd.com>
Cc: jassisinghbrar@gmail.com, michal.simek@amd.com,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, git@amd.com
Subject: Re: [PATCH 1/3] mailbox: zynqmp-ipi: Remove redundant mbox_controller_unregister() call
Date: Wed, 17 Sep 2025 23:19:15 +0800 [thread overview]
Message-ID: <20250917151915.GC28673@nxa18884-linux.ap.freescale.net> (raw)
In-Reply-To: <20250822045732.1068103-2-harini.t@amd.com>
On Fri, Aug 22, 2025 at 10:27:30AM +0530, Harini T wrote:
>Remove redundant mbox_controller_unregister() call as
>device_unregister() handles controller cleanup.
>
Should Fixes tag be added here?
Not sure whether device_unregister to trigger devres managed
mbox_controller_unregister would have any issue.
>Signed-off-by: Harini T <harini.t@amd.com>
>---
> drivers/mailbox/zynqmp-ipi-mailbox.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
>diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c
>index 0c143beaafda..bdcc6937ee30 100644
>--- a/drivers/mailbox/zynqmp-ipi-mailbox.c
>+++ b/drivers/mailbox/zynqmp-ipi-mailbox.c
>@@ -893,11 +893,8 @@ static void zynqmp_ipi_free_mboxes(struct zynqmp_ipi_pdata *pdata)
> i = pdata->num_mboxes;
> for (; i >= 0; i--) {
> ipi_mbox = &pdata->ipi_mboxes[i];
>- if (ipi_mbox->dev.parent) {
>- mbox_controller_unregister(&ipi_mbox->mbox);
>- if (device_is_registered(&ipi_mbox->dev))
>- device_unregister(&ipi_mbox->dev);
>- }
>+ if (device_is_registered(&ipi_mbox->dev))
>+ device_unregister(&ipi_mbox->dev);
The commit does not explain removing the check of ipi_mbox->dev.parent.
But I think this change is valid.
Regards
Peng
> }
> }
>
>--
>2.43.0
>
next prev parent reply other threads:[~2025-09-17 14:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 4:57 [PATCH 0/3] mailbox: zynqmp-ipi: Improve resource cleanup on driver unbind Harini T
2025-08-22 4:57 ` [PATCH 1/3] mailbox: zynqmp-ipi: Remove redundant mbox_controller_unregister() call Harini T
2025-09-17 15:19 ` Peng Fan [this message]
2025-08-22 4:57 ` [PATCH 2/3] mailbox: zynqmp-ipi: Fix out-of-bounds access in mailbox cleanup loop Harini T
2025-09-17 15:22 ` Peng Fan
2025-08-22 4:57 ` [PATCH 3/3] mailbox: zynqmp-ipi: Fix SGI cleanup on unbind Harini T
2025-09-17 15:25 ` Peng Fan
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=20250917151915.GC28673@nxa18884-linux.ap.freescale.net \
--to=peng.fan@oss.nxp.com \
--cc=git@amd.com \
--cc=harini.t@amd.com \
--cc=jassisinghbrar@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@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®