public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1 0/1] Fix peripheral USB mode detection
@ 2024-10-13 14:58 Svyatoslav Ryhel
  2024-10-13 14:58 ` [PATCH v1 1/1] usb: ci_udc: don't use "advance" feature when setting address Svyatoslav Ryhel
  0 siblings, 1 reply; 14+ messages in thread
From: Svyatoslav Ryhel @ 2024-10-13 14:58 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.

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] 14+ messages in thread

end of thread, other threads:[~2024-11-21 15:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-13 14:58 [PATCH v1 0/1] Fix peripheral USB mode detection Svyatoslav Ryhel
2024-10-13 14:58 ` [PATCH v1 1/1] usb: ci_udc: don't use "advance" feature when setting address Svyatoslav Ryhel
2024-10-15  9:56   ` Mattijs Korpershoek
2024-10-16 19:57     ` Ion Agorria
2024-10-17 12:21       ` Mattijs Korpershoek
2024-10-17 13:02         ` Svyatoslav Ryhel
2024-10-17 13:13           ` Mattijs Korpershoek
2024-10-18  6:52             ` Ion Agorria
2024-10-27 16:08   ` Marek Vasut
2024-10-27 16:42     ` Svyatoslav Ryhel
2024-11-20  6:45       ` Svyatoslav Ryhel
2024-11-21 11:13         ` Mattijs Korpershoek
2024-11-21 11:15           ` Svyatoslav Ryhel
2024-11-21 15:53             ` Mattijs Korpershoek

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