usb: Migrate drivers to use dev/ofnode APIs
Get series with b4
b4 am [email protected] change-id 20260526-devfdt-usb-8a17a2383cd6Versions newest first
- v2 Latest6 patches 2 repliesIn review
- v16 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- Add R-b from Simon
- Per Simon, for patch 2 and 3, updated commit log.
in patch 2, drop DECLARE_GLOBAL_DATA_PTR and the including of asm/global_data.h
- Link to v1: https://lore.kernel.org/r/[email protected]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | usb: musb-new: Drop unused variablesdrivers/ | +0 | 0 replies | |
| 2/6 | usb: musb-new: Use ofnode and dev APIsdrivers/ | +14 | 1 reply | |
| 3/6 | usb: musb-new: Update phandle handlingdrivers/ | +8 | 1 reply | |
| 4/6 | usb: host: xhci: Use dev_remap_addr_name()drivers/ | +2 | 0 replies | |
| 5/6 | usb: mtu3: Use dev_remap_addr_name()drivers/ | +2 | 0 replies | |
| 6/6 | usb: xhci: mvebu: Use dev_read_addr_index()drivers/ | +1 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | R-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] usb: Migrate drivers to use dev/ofnode APIs
Convert several USB drivers to use the dev_* and ofnode_* APIs and removes dependency on fdt/devfdt helpers.
The motivation is to:
- Eliminate direct usage of gd->fdt_blob and fdtdec_* interfaces
- Avoid devfdt_* helpers in favor of backend-agnostic APIs
- Ensure compatibility with both live device tree and flat DT
Summary:
- Clean up unused legacy variables
- Convert MUSB driver to use dev_* and ofnode_* APIs
- Improve phandle parsing with proper validation
- Replace devfdt_remap_addr_* with dev_remap_addr_* in MTK and MTU3
- Replace devfdt_get_addr_* with dev_read_addr_* in MVEBU
Not have the boards to test mainly regarding the musb changes, just best practice for the migration.
---
Changes in v2:
- Add R-b from Simon
- Per Simon, for patch 2 and 3, updated commit log.
in patch 2, drop DECLARE_GLOBAL_DATA_PTR and the including of asm/global_data.h
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Peng Fan (6):
usb: musb-new: Drop unused variables
usb: musb-new: Use ofnode and dev APIs
usb: musb-new: Update phandle handling
usb: host: xhci: Use dev_remap_addr_name()
usb: mtu3: Use dev_remap_addr_name()
usb: xhci: mvebu: Use dev_read_addr_index()
drivers/usb/host/xhci-mtk.c | 4 ++-- drivers/usb/host/xhci-mvebu.c | 2 +- drivers/usb/mtu3/mtu3_plat.c | 4 ++-- drivers/usb/musb-new/ti-musb.c | 48 +++++++++++++++++++----------------------- 4 files changed, 27 insertions(+), 31 deletions(-)
---
base-commit: 0a46055d96ac627c05180cdeaa187a9fdf6b7973
change-id: 20260526-devfdt-usb-8a17a2383cd6
Best regards,
Signature · 1 line
Peng Fan <[email protected]>