[PATCH 3/3] usb: dwc3: Allow glue drivers to override all dwc3_properties
André Draszik
andre.draszik at linaro.org
Thu Nov 26 04:49:47 PST 2026
On Tue, 2026-11-24 at 22:59 +0000, Thinh Nguyen wrote:
> struct dwc3_properties holds all glue-overridable properties, but glue
> drivers can only set needs_full_reinit and gsbuscfg0_reqinfo.
>
> Replace the properties value in struct dwc3_probe_data with a
> fixup_properties() hook. The core calls it after reading the DT
> properties, so glue drivers can set properties that DT does not
> provide, or override DT values, including clearing them, to correct
> broken SoC settings. Convert imx and ls1028a to the hook.
>
> Signed-off-by: Thinh Nguyen <Thinh.Nguyen at synopsys.com>
> ---
> drivers/usb/dwc3/core.c | 18 +++++-------------
> 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 | 10 ++++------
> 7 files changed, 27 insertions(+), 32 deletions(-)
Reviewed-by: André Draszik <andre.draszik at linaro.org>
More information about the linux-arm-kernel
mailing list