mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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: d115837259 ("usb: host: ohci-st: Add OHCI driver support for ST STB devices")
Cc: stable <[email protected]>
Assisted-by: LLM
Co-developed-by: Ijae Kim <[email protected]>
Signed-off-by: Ijae Kim <[email protected]>
Signed-off-by: Myeonghun Pak <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Acked-by: Alan Stern <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
b1b0f8bdbb
commit
08b2ccd7eb
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user