Commit 071c1469 authored by Guan-Yu Lin's avatar Guan-Yu Lin Committed by Treehugger Robot
Browse files

FROMGIT: usb: typec: tcpm: skip checking port->send_discover in PD3.0



The original Collison Avoidance mechanism, port->send_discover, avoids
the conflict when port partners start AMS almost the same time. However,
this mechanism is replaced by SINK_TX_OK and SINK_TX_NG. Skip the check
in PD3.0 to avoid the deadlock when source is requesting DR_SWAP where
sink is requesting DISCOVER_IDENTITY.

Signed-off-by: default avatarGuan-Yu Lin <guanyulin@google.com>
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231116083221.1201892-1-guanyulin@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 292178486
(cherry picked from commit e0cc05d5
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/

 usb-next)
Change-Id: I4691628d8085dfa7be9189b2bd598896664c38b5
Signed-off-by: default avatarGuan-Yu Lin <guanyulin@google.com>
parent a9567a35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment