u-boot/drivers/usb/host
Andre Przywara 81755b8c20 usb: host: ehci-generic: Make resets and clocks optional
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 ba96176ab7:
=======================
Bus usb@1c14000: ehci_generic usb@1c14000: Failed to get resets (err=-2)
probe failed, error -2
=======================

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2022-06-16 15:22:55 -04:00
..
dwc2.c usb: dwc2: Rename CONFIG_DWC2 namespace to DWC2 2021-08-30 14:10:05 -04:00
dwc2.h usb: dwc2: Rename CONFIG_DWC2 namespace to DWC2 2021-08-30 14:10:05 -04:00
dwc3-octeon-glue.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
dwc3-of-simple.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
dwc3-sti-glue.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ehci-armada100.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ehci-atmel.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
ehci-exynos.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ehci-faraday.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ehci-fsl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ehci-generic.c usb: host: ehci-generic: Make resets and clocks optional 2022-06-16 15:22:55 -04:00
ehci-hcd.c Rename CONFIG_EHCI_IS_TDI to CONFIG_USB_EHCI_IS_TDI 2021-10-15 09:42:22 -04:00
ehci-marvell.c usb: ehci: ehci-marvell: Update compatible string to official DT bindings 2022-02-17 14:17:07 +01:00
ehci-msm.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
ehci-mx5.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ehci-mx6.c usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn 2022-02-11 00:03:48 +01:00
ehci-mxc.c arm: Remove zmx25 board and ARCH_MX25 2021-10-01 21:08:18 -04:00
ehci-mxs.c usb: ehci: dm: Convert i.MX28 ehci code to driver model 2022-01-26 23:22:59 +01:00
ehci-omap.c usb: ehci-omap: Use PHY system to manage phy resets 2022-02-23 05:25:17 +01:00
ehci-pci.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
ehci-rmobile.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ehci-tegra.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
ehci-vct.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ehci-vf.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ehci-zynq.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
ehci.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
Kconfig usb: ehci-omap: Remove OMAP_EHCI_PHYx_RESET_GPIO from Kconfig 2022-02-23 05:25:17 +01:00
Makefile bootstd: usb: Add a bootdev driver 2022-04-25 10:00:04 -04:00
ohci-at91.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ohci-da8xx.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
ohci-generic.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
ohci-hcd.c pci: usb: ohci: Test on PCI not DM_PCI 2021-08-05 19:45:54 -04:00
ohci-lpc32xx.c dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ohci-pci.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
ohci.h usb: ohci: Add header file for ARCH_DMA_MINALIGN 2020-06-02 13:06:10 -04:00
r8a66597-hcd.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
r8a66597.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sl811-hcd.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sl811.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
usb-sandbox.c usb: sandbox: Add gadget callbacks 2021-10-12 14:20:04 +02:00
usb-uclass.c usb: Use the first available device for ehci_gadget 2022-01-25 11:47:07 -07:00
usb_bootdev.c bootstd: usb: Add a bootdev driver 2022-04-25 10:00:04 -04:00
utmi-armada100.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
xhci-brcm.c usb: xhci-brcm: Include header file needed for dev_err 2021-10-30 22:54:57 +02:00
xhci-dwc3.c usb: xhci-dwc3: Support role switch default role 2022-05-20 09:41:33 +02:00
xhci-exynos5.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
xhci-fsl.c usb: xhci: fsl: add new compatible fsl,ls1028a-dwc3 2021-11-09 17:18:23 +05:30
xhci-mem.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
xhci-mtk.c usb: xhci-mtk: disable all ports when disable host controller 2022-06-07 09:55:57 +02:00
xhci-mvebu.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
xhci-omap.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
xhci-pci.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
xhci-rcar-r8a779x_usb3_v3.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
xhci-rcar.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
xhci-ring.c usb: xhci: reset endpoint on USB stall 2022-02-16 17:11:31 +01:00
xhci.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00