usb: cdns3: USBSSP platform driver support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 2 repliesIn review
- v22 patches 3 repliesSuperseded
- v12 patches 18 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: usb: cdns,usb3: document USBSSP controller supportDocumentation/ | +8 | 0 replies | |
| 2/2 | usb: cdns3: Add USBSSP platform driver supportdrivers/ drivers/ drivers/ +8 more | +201 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Rob Herring (Arm) | Arnd Bergmann |
|---|---|---|
| 1/2 | A-b | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] usb: cdns3: USBSSP platform driver support
This series adds platform driver support for the Cadence USBSSP (CDNSP) controller, which was previously only accessible through PCI. The USBSSP controller is auto-detected at runtime by reading the DRD/OTG Device ID register; both USBSS and USBSSP use the "cdns,usb3" compatible string (binding update in patch 1).
Changes since v2 (vs the v2 series on list)
v2 split CONFIG_USB_CDNSP into its own cdnsp.ko-style path and built cdns3-plat as a standalone module next to cdns-usb-common. v3 folds the integration back into one driver module:
- Single cdns.ko (CONFIG_USB_CDNS3) bundles core, DRD, the generic cdns3-plat binding, optional host.o (CONFIG_USB_CDNS3_HOST) and optional gadget objects (CONFIG_USB_CDNS3_GADGET). SoC and PCI glue stay separate small .ko files.
- CONFIG_USB_CDNS_SUPPORT depends on USB and USB_GADGET using the usual pattern (depends on USB || USB_GADGET; depends on USB if !USB_GADGET; depends on USB_GADGET if !USB) so the umbrella tracks host or gadget when either is built as a module (Suggested-by: Arnd Bergmann).
- USB_CDNS3_HOST / USB_CDNS3_GADGET are matched to the cdns.ko tristate with USB=USB_CDNS3 and USB_GADGET=USB_CDNS3 instead of tying gadget only to CONFIG_USB_CDNS_SUPPORT, which mis-handled =y / =m splits when CONFIG_USB_CDNS_SUPPORT=y but CONFIG_USB_CDNS3=m.
- Drop CONFIG_USB_CDNS_HOST; Makefile and host-export.h use CONFIG_USB_CDNS3_HOST only.
- gadget-export.h uses IS_ENABLED(CONFIG_USB_CDNS3_GADGET) for stubs now that gadget is a bool compiled into the unified module (v2 used IS_REACHABLE on separate CONFIG_USB_CDNS3 / CONFIG_USB_CDNSP tristates).
- Patch 2 still refactors cdnsp-pci.c into a PCI-to-platform wrapper, keeps host_init / gadget_init callbacks, exports cdns_core_init_role, and limits drivers/usb/cdns3/ to CONFIG_USB_CDNS_SUPPORT.
- Add Rob Herring's ACK for Patch 1.
Build verification
Exhaustive Kconfig sweep: 79 unique resolved configurations (deduped on CONFIG_USB, CONFIG_USB_GADGET, CONFIG_USB_CDNS_SUPPORT, CONFIG_USB_CDNS3_HOST, CONFIG_USB_CDNS3, CONFIG_USB_CDNSP_PCI, CONFIG_USB_CDNS3_GADGET), arm64 cross-build, each run through make O=out/cix olddefconfig, then Image + modules, then modules_install into a clean INSTALL_MOD_PATH:
PASS 79 / 79; build failures 0; depmod / module graph failures 0.
Peter Chen (2):
dt-bindings: usb: cdns,usb3: document USBSSP controller support
usb: cdns3: Add USBSSP platform driver support
.../devicetree/bindings/usb/cdns,usb3.yaml | 10 +- drivers/usb/Makefile | 2 - drivers/usb/cdns3/Kconfig | 112 ++++----- drivers/usb/cdns3/Makefile | 44 ++-- drivers/usb/cdns3/cdns3-gadget.c | 1 + drivers/usb/cdns3/cdns3-plat.c | 27 ++- drivers/usb/cdns3/cdnsp-gadget.c | 1 + drivers/usb/cdns3/cdnsp-pci.c | 217 ++++++++---------- drivers/usb/cdns3/core.c | 45 ++-- drivers/usb/cdns3/core.h | 5 +- drivers/usb/cdns3/gadget-export.h | 10 +- drivers/usb/cdns3/host-export.h | 4 +- 12 files changed, 209 insertions(+), 269 deletions(-)
Signature · 1 line
2.50.1