diff options
author | RD Babiera <rdbabiera@google.com> | 2024-01-08 22:16:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-28 04:38:25 +0300 |
commit | 030509ac473da439e3d5438b1cd3c5b899844046 (patch) | |
tree | a65503164d13acce49593c2b0ed68697412401a3 /drivers/usb/typec/pd.c | |
parent | 6bd181ba60e198fef6f750b543832f161fbd9f39 (diff) | |
download | linux-030509ac473da439e3d5438b1cd3c5b899844046.tar.xz |
usb: typec: tcpci: add attempt_vconn_swap_discovery callback
Add attempt_vconn_swap_discovery callback to determine whether the TCPM
should perform a Vconn swap following Discover Identity on SOP. The tcpci
will return false unless chip level drivers implement the callback.
Maxim based TCPCs will return true unless the last connection resulted in
a Vconn Over Current Fault, which may be the result of the Vconn swap. In
addition to the port resetting, the TCPCI will veto the next Vconn swap
from occurring.
Signed-off-by: RD Babiera <rdbabiera@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240108191620.987785-21-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec/pd.c')
0 files changed, 0 insertions, 0 deletions