usb: typec: tcpm: Do not finish VDM AMS for retrying Responses
authorKyle Tso <kyletso@google.com>
Sun, 6 Jun 2021 08:14:52 +0000 (16:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 08:52:15 +0000 (10:52 +0200)
commit5ab14ab1f2db24ffae6c5c39a689660486962e6e
tree22b31b3a5d142c0ed49438d5d206176cdbc10d44
parent032e288097a553db5653af552dd8035cd2a0ba96
usb: typec: tcpm: Do not finish VDM AMS for retrying Responses

If the VDM responses couldn't be sent successfully, it doesn't need to
finish the AMS until the retry count reaches the limit.

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