devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] usb: dwc3: Avoid using reserved EPs
@ 2025-02-03 19:10 Andy Shevchenko
  2025-02-03 19:10 ` [PATCH v2 1/3] dt-bindings: usb: dwc3: Add a property to reserve endpoints Andy Shevchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Andy Shevchenko @ 2025-02-03 19:10 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Thinh Nguyen, Felipe Balbi, linux-usb,
	devicetree, linux-kernel
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ferry Toth,
	Andy Shevchenko


On some platforms (Intel-based and AFAIK ARM-based) the EPs in the gadget
(USB Device Controller mode) may be reserved for some special means, such as
tracing. This series extends DT schema and driver to avoid using those.
Without this the USB gadget mode won't work properly (those devices that
"luckily" allocated the reserved EPs).

Ferry already tested the previous versions, but I ask him again to
re-test this version which is significantly rewritten. I have not
applied given tag just to be sure we got it carefully tested again.

Changelog v2:
- added minItems to the schema (Rob)
- revisited code and add NULL check to avoid crashes (Thinh)
- rewrote helper function to return error to the user if parsing fails
- elaborated in the commit message why we need this quirk (Thinh)
- addressed miscellaneous style issues (Thinh)

Andy Shevchenko (3):
  dt-bindings: usb: dwc3: Add a property to reserve endpoints
  usb: dwc3: gadget: Add support for snps,reserved-endpoints property
  usb: dwc3: gadget: Avoid using reserved endpoints on Intel Merrifield

 .../bindings/usb/snps,dwc3-common.yaml        | 11 ++++
 drivers/usb/dwc3/dwc3-pci.c                   | 10 ++++
 drivers/usb/dwc3/gadget.c                     | 60 +++++++++++++++++--
 3 files changed, 76 insertions(+), 5 deletions(-)

-- 
2.43.0.rc1.1336.g36b5255a03ac


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

end of thread, other threads:[~2025-02-13  8:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 19:10 [PATCH v2 0/3] usb: dwc3: Avoid using reserved EPs Andy Shevchenko
2025-02-03 19:10 ` [PATCH v2 1/3] dt-bindings: usb: dwc3: Add a property to reserve endpoints Andy Shevchenko
2025-02-03 23:05   ` Rob Herring (Arm)
2025-02-03 19:10 ` [PATCH v2 2/3] usb: dwc3: gadget: Add support for snps,reserved-endpoints property Andy Shevchenko
2025-02-12  1:10   ` Thinh Nguyen
2025-02-12  1:13     ` Thinh Nguyen
2025-02-12 10:36     ` Andy Shevchenko
2025-02-12 18:58       ` Andy Shevchenko
2025-02-13  1:17         ` Thinh Nguyen
2025-02-13  8:07           ` Andy Shevchenko
2025-02-13  1:16       ` Thinh Nguyen
2025-02-13  1:25         ` Thinh Nguyen
2025-02-13  8:02         ` Andy Shevchenko
2025-02-03 19:10 ` [PATCH v2 3/3] usb: dwc3: gadget: Avoid using reserved endpoints on Intel Merrifield Andy Shevchenko
2025-02-11  0:23   ` Thinh Nguyen
2025-02-10 19:23 ` [PATCH v2 0/3] usb: dwc3: Avoid using reserved EPs Ferry Toth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).