Skip to content

usb: typec: ucsi: Expand SOP/SOP' Discovery

Jameson Thies linux-usb lkml regressions stable 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 8 repliesIn review
  2. v3 posting 3/34 patches 3 repliesSuperseded
  3. v3 posting 2/34 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 posting 1/31 of 4 patches0 repliesSuperseded
v24 patches1 replySuperseded
v14 patches20 repliesSuperseded

Changes in v4 from the cover letter

- Cleaned up redundent ucsi_send_command calls for discovering identity.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4usb: typec: ucsi: Clean up UCSI_CABLE_PROP macrosdrivers/usb/typec/ucsi/ucsi.h+2 -21 reply
2/4usb: typec: ucsi: Register cables based on GET_CABLE_PROPERTYdrivers/usb/typec/ucsi/ucsi.c drivers/usb/typec/ucsi/ucsi.h+78 -04 replies
3/4usb: typec: ucsi: Register SOP/SOP' Discover Identity Responsesdrivers/usb/typec/ucsi/ucsi.c drivers/usb/typec/ucsi/ucsi.h+141 -03 replies
4/4usb: typec: ucsi: Register SOP' alternate modes with cable plugdrivers/usb/typec/ucsi/ucsi.c drivers/usb/typec/ucsi/ucsi.h+62 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchBenson LeungPrashant MalaniDmitry BaryshkovHeikki Krogerus
1/4R-b R-b R-b R-b
2/4R-b R-b R-b R-b
3/4R-b R-b R-b
4/4R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] usb: typec: ucsi: Expand SOP/SOP' Discovery

Hi Heikki,

This patch series expands support for partner and cable discover in the UCSI driver. There are a few pieces here.

1. Some cleanup of the GET_CABLE_PROP definitions in ucsi.h.
2. Cable discovery and registration with the USB Type-C connector class.
3. Partner/Cable identity registration with the USB Type-C connector class.
4. SOP' alternate mode registration with the USB-C connector class using a cable plug.

These have been tested on a the usb-testing branch merged with a chromeOS 6.8-rc2 kernel. Let me know if you have any questions.

Thanks,
Jameson

Changes in v4:
- Cleaned up redundent ucsi_send_command calls for discovering identity.

Changes in v3:
- Fixed CC stable and email threading issue.

Changes in v2:
- Re-ordered memset call and null assignment when unregistering partners and cables.
- Supports registering partner and cable identity with UCSI versions before v2.0.
- Shortened lines to within 80 characters with the exception of two error log lines with three indentations.
- Tested on usb-testing branch merged with chromeOS 6.8-rc2 kernel.

Jameson Thies (4):
usb: typec: ucsi: Clean up UCSI_CABLE_PROP macros
usb: typec: ucsi: Register cables based on GET_CABLE_PROPERTY
usb: typec: ucsi: Register SOP/SOP' Discover Identity Responses
usb: typec: ucsi: Register SOP' alternate modes with cable plug

 drivers/usb/typec/ucsi/ucsi.c | 245 ++++++++++++++++++++++++++++++++++
 drivers/usb/typec/ucsi/ucsi.h |  40 +++++-
 2 files changed, 283 insertions(+), 2 deletions(-)

base-commit: a14e6fd1b67799da7da9cc344023bd16aaf0d17d

Signature · 1 line
2.44.0.rc1.240.g4c46232300-goog