Linux USB
 help / color / mirror / Atom feed
* [PATCH v2 0/3] usb: dwc3: Let glue drivers override all dwc3 properties
@ 2026-12-04 17:52 Thinh Nguyen
  2026-12-04 17:52 ` [PATCH v2 1/3] usb: dwc3: Group glue-overridable properties in struct dwc3 Thinh Nguyen
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Thinh Nguyen @ 2026-12-04 17:52 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,
	Krishna Kurapati, André Draszik, Pengutronix Kernel Team,
	Neal Gompa, Xu Yang, 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.

Changes in v2:
 - Add skip_phy_init to the property group and convert dwc3-qcom to
   the fixup_properties() hook after rebase
 - Fix del_p1p2p3_quirk whitespace (Xu Yang)
 - Collect tags

v1: https://lore.kernel.org/linux-usb/cover.1795559405.git.Thinh.Nguyen@synopsys.com/


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              |  40 +++----
 drivers/usb/dwc3/core.h              | 166 ++++++++++++++-------------
 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         |   9 +-
 drivers/usb/dwc3/glue.h              |  23 +---
 8 files changed, 129 insertions(+), 139 deletions(-)


base-commit: d6ed2c3c5bb60dc173b2edf38044695b6aefedd2
-- 
2.53.0

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

end of thread, other threads:[~2026-12-04 18:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 17:52 [PATCH v2 0/3] usb: dwc3: Let glue drivers override all dwc3 properties Thinh Nguyen
2026-12-04 17:52 ` [PATCH v2 1/3] usb: dwc3: Group glue-overridable properties in struct dwc3 Thinh Nguyen
2026-12-04 17:53 ` [PATCH v2 2/3] usb: dwc3: Move sysdev selection and clamp out of dwc3_get_properties() Thinh Nguyen
2026-12-04 17:53 ` [PATCH v2 3/3] usb: dwc3: Allow glue drivers to override all dwc3_properties Thinh Nguyen
2026-12-04 18:07   ` sashiko-bot
2026-12-04 18:07 ` [PATCH v2 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