From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Frank Li <Frank.Li@nxp.com>, Sven Peter <sven@kernel.org>,
Janne Grunau <j@jannau.net>,
Peter Griffin <peter.griffin@linaro.org>,
Sascha Hauer <s.hauer@pengutronix.de>
Cc: "Tejas Narendra Joglekar" <Tejas.Joglekar@synopsys.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
"linux-samsung-soc@vger.kernel.org"
<linux-samsung-soc@vger.kernel.org>,
"Tudor Ambarus" <tudor.ambarus@linaro.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"André Draszik" <andre.draszik@linaro.org>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Neal Gompa" <neal@gompa.dev>,
"asahi@lists.linux.dev" <asahi@lists.linux.dev>,
"imx@lists.linux.dev" <imx@lists.linux.dev>,
"Fabio Estevam" <festevam@gmail.com>
Subject: [PATCH 0/3] usb: dwc3: Let glue drivers override all dwc3 properties
Date: Tue, 24 Nov 2026 22:59:13 +0000 [thread overview]
Message-ID: <cover.1795559405.git.Thinh.Nguyen@synopsys.com> (raw)
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
next reply other threads:[~2026-11-24 23:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 22:59 Thinh Nguyen [this message]
2026-11-24 22:59 ` [PATCH 3/3] usb: dwc3: Allow glue drivers to override all dwc3_properties Thinh Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1795559405.git.Thinh.Nguyen@synopsys.com \
--to=thinh.nguyen@synopsys.com \
--cc=Frank.Li@nxp.com \
--cc=Tejas.Joglekar@synopsys.com \
--cc=andre.draszik@linaro.org \
--cc=asahi@lists.linux.dev \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=imx@lists.linux.dev \
--cc=j@jannau.net \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=neal@gompa.dev \
--cc=peter.griffin@linaro.org \
--cc=s.hauer@pengutronix.de \
--cc=sven@kernel.org \
--cc=tudor.ambarus@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox