[PATCH] usb: dwc3: meson: g12a: disable vbus on removal

Thinh Nguyen Thinh.Nguyen at synopsys.com
Fri Dec 4 11:31:33 PST 2026


On Thu, Nov 19, 2026, Wang Haoran wrote:
> dwc3_meson_g12a_probe() enables the vbus regulator, but the remove path
> neither disables it nor runs the suspend callback (pm_runtime_disable +
> pm_runtime_set_suspended short-circuits it), so VBUS stays powered after
> the driver is detached. The probe error path already unwinds the regulator,
> so this is simply the missing remove-side counterpart: the USB port keeps
> supplying 5V to an attached device even after the glue driver is unbound.
> 
> Disable vbus in the remove path to match probe.
> 
> Signed-off-by: Wang Haoran <wanghr2026 at mail.zgclab.edu.cn>
> Fixes: c99993376f72 ("usb: dwc3: Add Amlogic G12A DWC3 glue")
> ---
> 

Please address Sashiko's review.

Thanks,
Thinh


More information about the linux-amlogic mailing list