[PATCH] usb: host: ehci-generic: Make resets and clocks optional

Tom Rini trini at konsulko.com
Fri Jun 17 15:16:52 CEST 2022


On Wed, Jun 08, 2022 at 12:42:22AM +0100, Andre Przywara wrote:

> The generic EHCI binding does not *require* resets and clocks
> properties, and indeed for instance the Allwinner A20 SoCs does not
> need or define any resets in its DT.
> 
> Don't easily give up if clk_get_bulk() or reset_get_bulk() return an
> error, but check if that is due to the DT simply having no entries for
> either of them.
> 
> This fixes USB operation on all boards with an Allwinner A10 or A20 SoC,
> which were reporting an error after commit ba96176ab70e2999:
> =======================
> Bus usb at 1c14000: ehci_generic usb at 1c14000: Failed to get resets (err=-2)
> probe failed, error -2
> =======================
> 
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
> Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220617/2053e96f/attachment.sig>


More information about the U-Boot mailing list