Commit e6c09143 authored by Kyle Tso's avatar Kyle Tso Committed by Matthias Männich
Browse files

FROMGIT: usb: dwc3: core: Defer the probe until USB power supply ready



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: 6f0764b5 ("usb: dwc3: add a power supply for current control")
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarKyle Tso <kyletso@google.com>
Acked-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250115044548.2701138-1-kyletso@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 336373394
Bug: 374243207
(cherry picked from commit 66e0ea34
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/

 usb-testing)
Change-Id: Ia27fc7f136ae1c6f90b112a4a64bfaf59f3e9cbf
Signed-off-by: default avatarKyle Tso <kyletso@google.com>
parent b7e7f27a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment