From: Niklas Cassel <cassel@kernel.org>
To: Wentao Liang <vulab@iscas.ac.cn>,
Florian Fainelli <f.fainelli@gmail.com>
Cc: dlemoal@kernel.org, linux-ide@vger.kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] ata: ahci_brcm: fix reset refcount leak in brcm_ahci_resume()
Date: Thu, 4 Jun 2026 13:31:48 +0200 [thread overview]
Message-ID: <aiFiJJPOQgQABuXm@ryzen> (raw)
In-Reply-To: <aiFNiWf7bs2pmPFh@ryzen>
On Thu, Jun 04, 2026 at 12:03:53PM +0200, Niklas Cassel wrote:
(snip)
> The documentation for reset_control, explicitly says not to do this:
> https://github.com/torvalds/linux/blob/v7.1-rc6/drivers/reset/core.c#L365-L366
>
> And in libahci_platform.c, we always do either:
> return reset_control_rearm() or return reset_control_reset():
> https://github.com/torvalds/linux/blob/v7.1-rc6/drivers/ata/libahci_platform.c#L188-L193
I realize that I am stupid...
The code is doing it on two different reset handles.
My comment that the cleanup in brcm_ahci_resume() should match that in
brcm_ahci_resume() probe still stands.
i.e. you should also add a call to:
reset_control_assert(priv->rcdev_ahci);
And you should do it after disabling clocks, just as brcm_ahci_resume().
Kind regards,
Niklas
prev parent reply other threads:[~2026-06-04 11:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 10:24 [PATCH] ata: ahci_brcm: fix reset refcount leak in brcm_ahci_resume() Wentao Liang
2026-06-03 10:39 ` sashiko-bot
2026-06-04 10:03 ` Niklas Cassel
2026-06-04 11:31 ` Niklas Cassel [this message]
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=aiFiJJPOQgQABuXm@ryzen \
--to=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=f.fainelli@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=vulab@iscas.ac.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.