Skip to content

Commit

Permalink
usb: typec: tcpm: AMS and Collision Avoidance
Browse files Browse the repository at this point in the history
This patch provides the implementation of Collision Avoidance introduced
in PD3.0. The start of each Atomic Message Sequence (AMS) initiated by
the port will be denied if the current AMS is not interruptible. The
Source port will set the CC to SinkTxNG if it is going to initiate an
AMS, and SinkTxOk otherwise. Meanwhile, any AMS initiated by a Sink port
will be denied in TCPM if the port partner (Source) sets SinkTxNG except
for HARD_RESET and SOFT_RESET.

Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210114145053.1952756-2-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kyle Tso authored and Greg Kroah-Hartman committed Jan 21, 2021
1 parent 7a79f1f commit 0908c5a
Show file tree
Hide file tree
Showing 3 changed files with 527 additions and 98 deletions.
Loading

0 comments on commit 0908c5a

Please sign in to comment.