Skip to content

usb: host: Disable controller wakeup on removal

Myeonghun Pak linux-arm-kernel linux-samsung-soc linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3usb: ehci-platform: Disable controller wakeup on removaldrivers/usb/host/ehci-platform.c+1 -01 reply
2/3usb: ohci-platform: Disable controller wakeup on removaldrivers/usb/host/ohci-platform.c+1 -00 replies
3/3usb: ohci-exynos: Disable controller wakeup on removaldrivers/usb/host/ohci-exynos.c+1 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAlan Stern
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] usb: host: Disable controller wakeup on removal

These three independent patches balance the controller wakeup enable in the generic EHCI, generic OHCI and Exynos OHCI drivers. Each disables controller wakeup after usb_remove_hcd(), before releasing the remaining driver-owned resources. No shared USB core behavior is changed.

For generic EHCI, a wakeup-capable ACPI companion provides the capability setting through acpi_bind_one(). For the two OHCI drivers, ohci_run() sets controller capability when OHCI_CTRL_RWC is present. If probe successfully enables wakeup, the attached source otherwise survives ordinary driver unbind because the controller device itself remains registered.

This issue was identified during our ongoing static-analysis research while reviewing kernel code. The patches and explanations were prepared with LLM assistance.

Compile-tested only; no hardware runtime testing was performed.

Myeonghun Pak (3):
usb: ehci-platform: Disable controller wakeup on removal
usb: ohci-platform: Disable controller wakeup on removal
usb: ohci-exynos: Disable controller wakeup on removal

 drivers/usb/host/ehci-platform.c | 1 +
 drivers/usb/host/ohci-exynos.c   | 1 +
 drivers/usb/host/ohci-platform.c | 1 +
 3 files changed, 3 insertions(+)

base-commit: fd73f4a6659897191fa0d40695fe370925dd3780