On Mon, Sep 28, 2026 at 06:40:52AM +0000, Jonas Karlman wrote:
> The commit 84de44e5e71e ("usb: dwc3-generic: fix ref clock lookup
> indexing wrong clk_bulk array") introduced a clk_enable() call for the
> ref clock.
>
> However, clk_enable() may return -ENOSYS when a clock driver does not
> implement the .enable ops, i.e., for most Rockchip SoCs where most/all
> clocks typically are un-gated out of system reset.
>
> The new clk_enable() call may cause USB to fail on such platforms, e.g.:
>
> => ums mmc 0
> UMS: LUN 0, dev mmc 0, hwpart 0, sector 0x0, count 0x3a3e000
> dwc3-generic-peripheral usb@fcc00000: failed to enable ref clock: -38
> dwc3-generic-peripheral usb@fcc00000: failed to enable ref clock: -38
> No USB device found
> Couldn't init USB controller.
>
> Ignore -ENOSYS errors from clk_enable() to restore DWC3 to a working
> state on affected platforms.
>
> Fixes: 84de44e5e71e ("usb: dwc3-generic: fix ref clock lookup indexing wrong
> clk_bulk array")
> Signed-off-by: Jonas Karlman <[email protected]>
> Reviewed-by: Marek Vasut <[email protected]>Applied to u-boot/main, thanks! -- Tom
signature.asc
Description: PGP signature
