summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorMyeonghun Pak <mhun512@gmail.com>2026-09-14 21:20:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-16 19:19:17 +0100
commit08b2ccd7eb7e41f77a04a09112ca3edcc588e3f0 (patch)
tree3635aa2e9a533e17db911407c10a92e819f12343 /drivers/usb/host
parentb1b0f8bdbbc891a4ee7f3b1a878c633e02b7bbeb (diff)
downloadlinux-next-08b2ccd7eb7e41f77a04a09112ca3edcc588e3f0.tar.gz
linux-next-08b2ccd7eb7e41f77a04a09112ca3edcc588e3f0.zip
usb: ohci-st: disable controller wakeup on removal
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 <stable@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> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://patch.msgid.link/20260915012011.61874-5-mhun512@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ohci-st.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-st.c b/drivers/usb/host/ohci-st.c
index d1656fce5400..53010a277b67 100644
--- a/drivers/usb/host/ohci-st.c
+++ b/drivers/usb/host/ohci-st.c
@@ -235,6 +235,7 @@ static void st_ohci_platform_remove(struct platform_device *dev)
int clk;
usb_remove_hcd(hcd);
+ device_wakeup_disable(hcd->self.controller);
if (pdata->power_off)
pdata->power_off(dev);