1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-03 22:57:10 +01:00
Files
u-boot-megous/drivers
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
..
2021-03-08 10:32:34 +01:00
2021-05-31 16:35:54 +08:00
2021-05-24 14:21:30 -04:00
2021-04-10 08:04:42 -04:00
2021-04-12 17:44:55 -04:00
2021-03-27 13:59:36 +13:00
2021-05-04 07:57:18 -04:00
2021-03-13 13:14:52 -05:00
2020-11-06 10:18:20 +08:00