]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: core: Defer the probe until USB power supply ready
authorKyle Tso <kyletso@google.com>
Wed, 15 Jan 2025 04:45:48 +0000 (12:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:15 +0000 (12:50 +0100)
commit16d5669ff07fb7db7fbe5b2e5a90031137693558
tree18e1744d79287db36a8602eb3e241d58662f2156
parent2cfbf53baeaf2320e6ea64c53457892d0d0203a0
usb: dwc3: core: Defer the probe until USB power supply ready

commit 66e0ea341a2a78d14336117f19763bd9be26d45d upstream.

Currently, DWC3 driver attempts to acquire the USB power supply only
once during the probe. If the USB power supply is not ready at that
time, the driver simply ignores the failure and continues the probe,
leading to permanent non-functioning of the gadget vbus_draw callback.

Address this problem by delaying the dwc3 driver initialization until
the USB power supply is registered.

Fixes: 6f0764b5adea ("usb: dwc3: add a power supply for current control")
Cc: stable <stable@kernel.org>
Signed-off-by: Kyle Tso <kyletso@google.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250115044548.2701138-1-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c