Skip to content

usb: dwc3: Let glue drivers override all dwc3 properties

Thinh Nguyen asahi imx linux-arm-kernel linux-arm-msm linux-samsung-soc linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3usb: dwc3: Group glue-overridable properties in struct dwc3drivers/usb/dwc3/core.h drivers/usb/dwc3/glue.h+83 -911 reply
2/3usb: dwc3: Move sysdev selection and clamp out of dwc3_get_properties()drivers/usb/dwc3/core.c+11 -100 replies
3/3usb: dwc3: Allow glue drivers to override all dwc3_propertiesdrivers/usb/dwc3/core.c drivers/usb/dwc3/dwc3-apple.c drivers/usb/dwc3/dwc3-generic-plat.c +4 more+27 -321 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchXu Yang
1/3
2/3
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] usb: dwc3: Let glue drivers override all dwc3 properties

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

Signature · 1 line
2.53.0