usb: dwc3: Let glue drivers override all dwc3 properties
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | usb: dwc3: Group glue-overridable properties in struct dwc3drivers/ drivers/ | +83 | 1 reply | |
| 2/3 | usb: dwc3: Move sysdev selection and clamp out of dwc3_get_properties()drivers/ | +11 | 0 replies | |
| 3/3 | usb: dwc3: Allow glue drivers to override all dwc3_propertiesdrivers/ drivers/ drivers/ +4 more | +27 | 1 reply |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Xu Yang |
|---|---|
| 1/3 | |
| 2/3 | |
| 3/3 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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