Skip to content

USB Type-C changes

Heikki Krogerus linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15usb: typec: Block mode entry if the port has the mode disableddrivers/usb/typec/bus.c+3 -00 replies
2/15usb: typec: Add parameter for the VDO to typec_altmode_enter()drivers/usb/typec/altmodes/displayport.c drivers/usb/typec/bus.c drivers/usb/typec/tcpm/tcpm.c +2 more+14 -114 replies
3/15usb: typec: More API for cable handlingdrivers/usb/typec/class.c include/linux/usb/typec.h+50 -00 replies
4/15usb: typec: Make the attributes read-only when writing is not possibledrivers/usb/typec/class.c+66 -562 replies
5/15usb: typec: Hide the port_type attribute when it's not supporteddrivers/usb/typec/class.c+3 -20 replies
6/15usb: typec: Allow power role swapping even without USB PDDocumentation/ABI/testing/sysfs-class-typec drivers/usb/typec/class.c+7 -80 replies
7/15usb: typec: Fix the description of struct typec_capabilityinclude/linux/usb/typec.h+0 -20 replies
8/15usb: pd: Add definitions for the Enter_USB messageinclude/linux/usb/pd.h+32 -10 replies
9/15usb: pd: Add definition for DFP and UFP1 VDOsinclude/linux/usb/pd_vdo.h+32 -00 replies
10/15usb: typec: Add the Product Type VDOs to struct usb_pd_identityinclude/linux/usb/typec.h+2 -00 replies
11/15usb: typec: Add definitions for the latest specification releasesinclude/linux/usb/typec.h+3 -00 replies
12/15usb: typec: Give the mux drivers all the details regarding the port statedrivers/usb/typec/bus.c drivers/usb/typec/class.c drivers/usb/typec/mux/pi3usb30532.c +1 more+37 -130 replies
13/15usb: typec: Provide definitions for the USB modesinclude/linux/usb/typec_altmode.h+16 -00 replies
14/15usb: typec: Add member for the supported USB modes to struct typec_capabilityinclude/linux/usb/typec.h+6 -02 replies
15/15usb: typec: ucsi: Store the supported USB modesdrivers/usb/typec/ucsi/ucsi.c+5 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/15] USB Type-C changes

Hi,

This series adds a number of smaller improvements to the USB Type-C Connector class code, including new helpers for cables, new definitions for the latest standard versions, support for the Enter Mode VDO, etc.

The series also includes patches that are meant to (partially) prepare the subsystem for USB4 support, and for Thundebolt3 alternate mode. Especially the new Enter_Mode Message that USB4 requires is considered with the definitions for the "USB mode" (which can be usb2, usb3 or usb4), which is one of the fields in that message. Later we will need to allow the user to control the USB mode, but I'm not including the patches that add the attributes for that in this series. I'll send them separately as RFC following this series.

thanks,

Heikki Krogerus (15):
usb: typec: Block mode entry if the port has the mode disabled
usb: typec: Add parameter for the VDO to typec_altmode_enter()
usb: typec: More API for cable handling
usb: typec: Make the attributes read-only when writing is not possible
usb: typec: Hide the port_type attribute when it's not supported
usb: typec: Allow power role swapping even without USB PD
usb: typec: Fix the description of struct typec_capability
usb: pd: Add definitions for the Enter_USB message
usb: pd: Add definition for DFP and UFP1 VDOs
usb: typec: Add the Product Type VDOs to struct usb_pd_identity
usb: typec: Add definitions for the latest specification releases
usb: typec: Give the mux drivers all the details regarding the port
state
usb: typec: Provide definitions for the USB modes
usb: typec: Add member for the supported USB modes to struct
typec_capability
usb: typec: ucsi: Store the supported USB modes

 Documentation/ABI/testing/sysfs-class-typec |  14 +-
 drivers/usb/typec/altmodes/displayport.c    |   5 +-
 drivers/usb/typec/bus.c                     |  40 +++--
 drivers/usb/typec/class.c                   | 174 +++++++++++++-------
 drivers/usb/typec/mux/pi3usb30532.c         |   5 +-
 drivers/usb/typec/tcpm/tcpm.c               |   6 +-
 drivers/usb/typec/ucsi/displayport.c        |   2 +-
 drivers/usb/typec/ucsi/ucsi.c               |   5 +
 include/linux/usb/pd.h                      |  33 +++-
 include/linux/usb/pd_vdo.h                  |  32 ++++
 include/linux/usb/typec.h                   |  17 +-
 include/linux/usb/typec_altmode.h           |  20 ++-
 include/linux/usb/typec_mux.h               |  10 +-
 13 files changed, 273 insertions(+), 90 deletions(-)
Signature · 1 line
2.24.1