diff options
author | João Loureiro <joaofl@gmail.com> | 2021-03-17 16:52:21 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2021-06-09 10:54:26 +0200 |
commit | dcd2bbe0510d7d47d745eeea063496a83cb3b08e (patch) | |
tree | 67f60ff5b88a5d31f803e81f39608443b61009f6 /api | |
parent | c2d21e0ac087a153f1c4632e4ce46668bbf83633 (diff) | |
download | u-boot-dcd2bbe0510d7d47d745eeea063496a83cb3b08e.tar.gz u-boot-dcd2bbe0510d7d47d745eeea063496a83cb3b08e.tar.xz u-boot-dcd2bbe0510d7d47d745eeea063496a83cb3b08e.zip |
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>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions