Skip to content

usb: typec: handle tcpc vconn oc fault by triggering tcpm error recovery

RD Babiera linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: typec: tcpm: add tcpm_port_error_recovery symboldrivers/usb/typec/tcpm/tcpm.c include/linux/usb/tcpm.h+15 -02 replies
2/2usb: typec: tcpci: add vconn over current fault handling to maxim_coredrivers/usb/typec/tcpm/tcpci_maxim_core.c include/linux/usb/tcpci.h+23 -22 replies

Reviews trailers per patch

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

PatchHeikki KrogerusGuenter Roeck
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] usb: typec: handle tcpc vconn oc fault by triggering tcpm error recovery

When a Vconn swap results in a Vconn over current fault, typec port interoperability is affected and cannot be recovered unless the connection is reset and restablished.

The tcpm currently does not have an export symbol to set the port to the error recovery state in the event of tcpc faults. This patch set adds tcpm_port_error_recovery for tcpci drivers to use when a fault should result in a connection reset. Vconn over current fault handling is added to the maxim tcpci driver.

RD Babiera (2):
usb: typec: tcpm: add tcpm_port_error_recovery symbol
usb: typec: tcpci: add vconn over current fault handling to maxim_core

 drivers/usb/typec/tcpm/tcpci_maxim_core.c | 20 +++++++++++++++++++-
 drivers/usb/typec/tcpm/tcpm.c             | 14 ++++++++++++++
 include/linux/usb/tcpci.h                 |  5 ++++-
 include/linux/usb/tcpm.h                  |  1 +
 4 files changed, 38 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0.rc1.413.gea7ed67945-goog