[PATCH v2 0/1] Fix peripheral USB mode detection
Svyatoslav Ryhel
clamor95 at gmail.com
Tue Nov 26 08:29:55 CET 2024
In the older USB controllers like for example in ChipIdea controller
used by the Tegra 2 the "USBADRA: Device Address Advance" bitflag
does not exist, so the new device address set during SET_ADDRESS
can't be deferred by hardware, which causes the host to not recognize
the device and give an error.
Instead store it until ep completes to apply the change into the hw
register as Linux kernel does. This should fix regression on old and
and be compatible with newer controllers.
Fixes usb peripheral on Tegra 2 devices.
---
Changes from v1:
- added reference link to linux patch which inspired this change
---
Ion Agorria (1):
usb: ci_udc: don't use "advance" feature when setting address
drivers/usb/gadget/ci_udc.c | 24 +++++++++++++++++++++++-
drivers/usb/gadget/ci_udc.h | 1 +
2 files changed, 24 insertions(+), 1 deletion(-)
--
2.43.0
More information about the U-Boot
mailing list