Skip to content

Add xhci-exynos for Exynos SOC

Daehwan Jung linux-arm-kernel linux-samsung-soc linux-usb lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 4 repliesIn review
  2. v45 patches 39 repliesSuperseded
  3. v34 patches 22 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches4 repliesSuperseded
v14 patches12 repliesSuperseded

Changes in v5 from the cover letter

- Rename subject of cover-letter.
- Add code in xhci_alloc_segments_for_uram.
- Add code for supporting several devices.
- Move adding xhci_address_device to other commit. (usb: host: add some to xhci overrides for xhci-exynos

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6usb: host: export symbols for xhci-exynos to use xhci hooksdrivers/usb/host/xhci-hub.c drivers/usb/host/xhci-mem.c drivers/usb/host/xhci-ring.c +2 more+26 -70 replies
2/6usb: host: add xhci hooks for xhci-exynosdrivers/usb/host/xhci-hub.c drivers/usb/host/xhci-mem.c drivers/usb/host/xhci-plat.c +3 more+297 -180 replies
3/6usb: host: xhci-plat: support override of hc driverdrivers/usb/host/xhci-plat.c drivers/usb/host/xhci-plat.h+7 -00 replies
4/6usb: host: add some to xhci overrides for xhci-exynosdrivers/usb/host/xhci.c drivers/usb/host/xhci.h+9 -00 replies
5/6usb: host: add xhci-exynos driverdrivers/usb/host/Kconfig drivers/usb/host/Makefile drivers/usb/host/xhci-exynos.c+784 -01 reply
6/6usb: dwc3: dwc3-exynos: add host initdrivers/usb/dwc3/dwc3-exynos.c+99 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/6] Add xhci-exynos for Exynos SOC

This patchset is for Samsung Exynos xHCI host conroller. It uses xhci platform driver and extends some functions by xhci hooks and overrides.

This driver supports USB offload which makes Co-processor to use some memories of xhci. Especially it's useful for USB Audio scenario. Audio stream would get shortcut because Co-processor directly write/read data in xhci memories. It could get speed-up using faster memory like SRAM. That's why this gives vendors flexibilty of memory management. This feature is done with xhci hooks and overrides.

It supports USB offload only for first connected device. It follows normal sequence from 2nd device.

Changes in v2 :
- Fix commit message by adding Signed-off-by in each patch.
- Fix conflict on latest.

Changes in v3 :
- Remove export symbols and xhci hooks which xhci-exynos don't need.
- Modify commit message to clarify why it needs to export symbols.
- Check compiling of xhci-exynos.

Changes in v4 :
- Modify commit message to clarify why it needs to export symbols.
- Add a function for override of hc driver in xhci-plat.
- Make xhci-exynos extending xhci-plat by xhci hooks and overrides. (vendor_init / vendor_cleanup hooks are useful from here v4)
- Change the term (USB offload -> xhci-exynos) on subject of patches.

Changes in v5 :
- Rename subject of cover-letter.
- Add code in xhci_alloc_segments_for_uram.
- Add code for supporting several devices.
- Move adding xhci_address_device to other commit. (usb: host: add some to xhci overrides for xhci-exynos

    -> usb: host: export symbols for xhci-exynos to use xhci hooks)

- Add new commit (usb: dwc3: dwc3-exynos: add host init)

Daehwan Jung (6):
usb: host: export symbols for xhci-exynos to use xhci hooks
usb: host: add xhci hooks for xhci-exynos
usb: host: xhci-plat: support override of hc driver
usb: host: add some to xhci overrides for xhci-exynos
usb: host: add xhci-exynos driver
usb: dwc3: dwc3-exynos: add host init

 drivers/usb/dwc3/dwc3-exynos.c | 100 ++++-
 drivers/usb/host/Kconfig       |   8 +
 drivers/usb/host/Makefile      |   1 +
 drivers/usb/host/xhci-exynos.c | 775 +++++++++++++++++++++++++++++++++
 drivers/usb/host/xhci-hub.c    |   7 +
 drivers/usb/host/xhci-mem.c    | 150 ++++++-
 drivers/usb/host/xhci-plat.c   |  50 ++-
 drivers/usb/host/xhci-plat.h   |   9 +
 drivers/usb/host/xhci-ring.c   |   1 +
 drivers/usb/host/xhci.c        |  90 +++-
 drivers/usb/host/xhci.h        |  57 +++
 11 files changed, 1222 insertions(+), 26 deletions(-)
 create mode 100644 drivers/usb/host/xhci-exynos.c
Signature · 1 line
2.31.1