u-boot/drivers/usb
João Loureiro dcd2bbe051 usb: dwc2: Avoid delay when initializing USB peripheral by dwc2
When `usb start` is called on the terminal, the dwc2 driver will try
to start every USB device as host first, even if it is explicitly
configured as peripheral in the device tree (dr_mode = "peripheral").

So to avoid an unwanted 15 seconds delay when initializing the usb
(one second per channel = 1s x 15), this patch adds a check to the
initialization, and will skip host initialization of the device is
explicitly set as peripheral. The checking is already done similarly
in the `drivers/usb/gadget/dwc2_udc_otg.c` driver.

Signed-off-by: João Loureiro <joaofl@gmail.com>
2021-06-09 10:54:26 +02:00
..
cdns3 usb: cdns3: cdns3-ti: Fix clk_get_by_name() to get the correct name 2021-06-08 22:01:20 +02:00
common common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
dwc3 usb: dwc3-generic: Disable host driver definition if gadget only 2021-05-16 19:01:45 +02:00
emul dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
eth Prepare v2021.01-rc5 2021-01-05 16:20:26 -05:00
gadget usb: Return -ENOSYS when system call is not available 2021-04-06 16:33:19 +12:00
host usb: dwc2: Avoid delay when initializing USB peripheral by dwc2 2021-06-09 10:54:26 +02:00
mtu3 usb: mtu3: flush cache for next GPD 2021-03-10 11:48:09 +01:00
musb usb: musb: Ensure that we set musb dynamic FIFO buffer for every endpoint 2021-03-03 04:12:46 +01:00
musb-new usb: musb-new: Extend and move Allwinner quirk into Kconfig 2021-05-16 19:01:45 +02:00
phy common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ulpi common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Kconfig usb: USB keyboard requires DM_KEYBOARD 2021-03-03 04:12:46 +01:00