usb: typec: tcpm: add tcpm_port_error_recovery symbol
authorRD Babiera <rdbabiera@google.com>
Tue, 21 Nov 2023 20:38:47 +0000 (20:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Dec 2023 13:29:51 +0000 (22:29 +0900)
commitdb9e54709895241dda23f9347f619afb15291353
treef4a7dec71cdfbe52cfbded8f0f37585ff2765d64
parent9f802703fde29011aa9003cb1c5a418623a944ca
usb: typec: tcpm: add tcpm_port_error_recovery symbol

Add tcpm_port_error_recovery symbol and corresponding event that runs in
tcpm_pd_event handler to set the port to the ERROR_RECOVERY state. tcpci
drivers can use the symbol to reset the port when tcpc faults affect port
functionality.

Signed-off-by: RD Babiera <rdbabiera@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231121203845.170234-5-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c
include/linux/usb/tcpm.h