U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Fix peripheral USB mode detection
@ 2024-11-26  7:29 Svyatoslav Ryhel
  2024-11-26  7:29 ` [PATCH v2 1/1] usb: ci_udc: don't use "advance" feature when setting address Svyatoslav Ryhel
  2024-11-26  8:57 ` [PATCH v2 0/1] Fix peripheral USB mode detection Mattijs Korpershoek
  0 siblings, 2 replies; 4+ messages in thread
From: Svyatoslav Ryhel @ 2024-11-26  7:29 UTC (permalink / raw)
  To: Lukasz Majewski, Mattijs Korpershoek, Marek Vasut, Tom Rini,
	Simon Holesch, Ion Agorria, Svyatoslav Ryhel
  Cc: u-boot

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-26  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26  7:29 [PATCH v2 0/1] Fix peripheral USB mode detection Svyatoslav Ryhel
2024-11-26  7:29 ` [PATCH v2 1/1] usb: ci_udc: don't use "advance" feature when setting address Svyatoslav Ryhel
2024-11-26  8:51   ` Mattijs Korpershoek
2024-11-26  8:57 ` [PATCH v2 0/1] Fix peripheral USB mode detection Mattijs Korpershoek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox