]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: tcpm: Properly interrupt VDM AMS
authorKyle Tso <kyletso@google.com>
Sun, 23 May 2021 01:58:54 +0000 (09:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 May 2021 13:14:20 +0000 (15:14 +0200)
commit865426793285b60e5fc21b43939fae92a11a4d2c
tree506b5386100020c19049d51d8c1875e17e6952e1
parent61f89828eed8da54e381931cb14953cc4535b798
usb: typec: tcpm: Properly interrupt VDM AMS

When a VDM AMS is interrupted by Messages other than VDM, the AMS needs
to be finished properly. Also start a VDM AMS if receiving SVDM Commands
from the port partner to complement the functionality of tcpm_vdm_ams().

Fixes: c6f582cf3944 ("usb: typec: tcpm: AMS and Collision Avoidance")
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210523015855.1785484-2-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c