]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: tcpm: Fix misuses of AMS invocation
authorKyle Tso <kyletso@google.com>
Tue, 1 Jun 2021 12:31:51 +0000 (20:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Jun 2021 09:43:01 +0000 (11:43 +0200)
commit5fd3250399a862b88f0feadb817869f9babf3da9
tree532bac7eff2f067a0ebd05d2ff7382aec4ccc609
parent67aa90f76ede3295ec526d1ca19c36b730a8a3b7
usb: typec: tcpm: Fix misuses of AMS invocation

tcpm_ams_start is used to initiate an AMS as well as checking Collision
Avoidance conditions but not for flagging passive AMS (initiated by the
port partner). Fix the misuses of tcpm_ams_start in tcpm_pd_svdm.

ATTENTION doesn't need responses so the AMS flag is not needed here.

Fixes: 1e0056c9644b ("usb: typec: tcpm: Properly interrupt VDM AMS")
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210601123151.3441914-5-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c