From: Patrice CHOTARD <patrice.chotard@foss.st.com>
To: Myeonghun Pak <mhun512@gmail.com>,
Alan Stern <stern@rowland.harvard.edu>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
Peter Griffin <peter.griffin@linaro.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-samsung-soc@vger.kernel.org>, <stable@vger.kernel.org>
Subject: Re: [PATCH 4/4] usb: ohci-st: disable controller wakeup on removal
Date: Tue, 15 Sep 2026 11:34:58 +0200 [thread overview]
Message-ID: <94c33607-00e7-4e2e-8e98-3466bc522fbf@foss.st.com> (raw)
In-Reply-To: <20260915012011.61874-5-mhun512@gmail.com>
On 9/15/26 03:20, Myeonghun Pak wrote:
> Probe enables controller wakeup after the OHCI core marks controllers with
> RemoteWakeupConnected as wakeup-capable. Removal does not undo this, so the
> wakeup source can remain attached after driver unbind.
>
> Disable controller wakeup after removing the HCD.
>
> This issue was identified during our ongoing static-analysis research
> while reviewing kernel code.
>
> Fixes: d115837259ad ("usb: host: ohci-st: Add OHCI driver support for ST STB devices")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Co-developed-by: Ijae Kim <ae878000@gmail.com>
> Signed-off-by: Ijae Kim <ae878000@gmail.com>
> Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
> ---
> drivers/usb/host/ohci-st.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/host/ohci-st.c b/drivers/usb/host/ohci-st.c
> --- a/drivers/usb/host/ohci-st.c
> +++ b/drivers/usb/host/ohci-st.c
> @@ -235,6 +235,7 @@
> int clk;
>
> usb_remove_hcd(hcd);
> + device_wakeup_disable(hcd->self.controller);
>
> if (pdata->power_off)
> pdata->power_off(dev);
Hi Myeonghun
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
prev parent reply other threads:[~2026-09-15 9:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 1:20 [PATCH 0/4] usb: ohci: Balance controller wakeup on cleanup Myeonghun Pak
2026-09-15 1:20 ` [PATCH 1/4] usb: ohci-da8xx: disable " Myeonghun Pak
2026-09-15 1:20 ` [PATCH 2/4] usb: ohci-s3c2410: disable controller wakeup on removal Myeonghun Pak
2026-09-15 1:20 ` [PATCH 3/4] usb: ohci-spear: " Myeonghun Pak
2026-09-15 1:20 ` [PATCH 4/4] usb: ohci-st: " Myeonghun Pak
2026-09-15 9:34 ` Patrice CHOTARD
2026-09-15 9:34 ` Patrice CHOTARD [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=94c33607-00e7-4e2e-8e98-3466bc522fbf@foss.st.com \
--to=patrice.chotard@foss.st.com \
--cc=alim.akhtar@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mhun512@gmail.com \
--cc=peter.griffin@linaro.org \
--cc=stable@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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®