Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/3] usb: dwc3: Let glue drivers override all dwc3 properties
@ 2026-11-24 22:59 Thinh Nguyen
  2026-11-24 22:59 ` [PATCH 1/3] usb: dwc3: Group glue-overridable properties in struct dwc3 Thinh Nguyen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thinh Nguyen @ 2026-11-24 22:59 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Thinh Nguyen, Frank Li, Sven Peter,
	Janne Grunau, Peter Griffin, Sascha Hauer
  Cc: Tejas Narendra Joglekar, linux-usb@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
	Tudor Ambarus, linux-arm-kernel@lists.infradead.org,
	André Draszik, Pengutronix Kernel Team, Neal Gompa,
	asahi@lists.linux.dev, imx@lists.linux.dev, Fabio Estevam

struct dwc3_properties duplicates fields of struct dwc3, and glue
drivers can only set two of them. Define it from struct dwc3 with
struct_group_tagged() and replace the properties value in struct
dwc3_probe_data with a fixup_properties() hook. The hook runs after the
DT properties are read, so glue drivers can set properties that DT does
not provide, or override DT values.

I used AI tools to help review the code and polish the commit messages.


Thinh Nguyen (3):
  usb: dwc3: Group glue-overridable properties in struct dwc3
  usb: dwc3: Move sysdev selection and clamp out of dwc3_get_properties()
  usb: dwc3: Allow glue drivers to override all dwc3_properties

 drivers/usb/dwc3/core.c              |  37 +++---
 drivers/usb/dwc3/core.h              | 163 ++++++++++++++-------------
 drivers/usb/dwc3/dwc3-apple.c        |   1 -
 drivers/usb/dwc3/dwc3-generic-plat.c |  19 ++--
 drivers/usb/dwc3/dwc3-google.c       |   1 -
 drivers/usb/dwc3/dwc3-imx.c          |   9 +-
 drivers/usb/dwc3/dwc3-qcom.c         |   1 -
 drivers/usb/dwc3/glue.h              |  21 +---
 8 files changed, 120 insertions(+), 132 deletions(-)


base-commit: 90d6263e867be7089b3d3323bef8d2accd327c77
-- 
2.53.0

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

end of thread, other threads:[~2026-11-24 23:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 22:59 [PATCH 0/3] usb: dwc3: Let glue drivers override all dwc3 properties Thinh Nguyen
2026-11-24 22:59 ` [PATCH 1/3] usb: dwc3: Group glue-overridable properties in struct dwc3 Thinh Nguyen
2026-11-24 22:59 ` [PATCH 2/3] usb: dwc3: Move sysdev selection and clamp out of dwc3_get_properties() Thinh Nguyen
2026-11-24 22:59 ` [PATCH 3/3] usb: dwc3: Allow glue drivers to override all dwc3_properties Thinh Nguyen
2026-11-24 23:04 ` [PATCH 0/3] usb: dwc3: Let glue drivers override all dwc3 properties sashiko-bot

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