Files
kernel_arpi/include/linux
Kyle Tso e4046d6ecc FROMGIT: usb: typec: tcpm: Properly handle Alert and Status Messages
When receiving Alert Message, if it is not unexpected but is
unsupported for some reason, the port should return Not_Supported
Message response.

Also, according to PD3.0 Spec 6.5.2.1.4 Event Flags Field, the
OTP/OVP/OCP flags in the Event Flags field in Status Message no longer
require Get_PPS_Status Message to clear them. Thus remove it when
receiving Status Message with those flags being set.

In addition, add the missing AMS operations for Status Message.

Fixes: 64f7c494a3 ("typec: tcpm: Add support for sink PPS related messages")
Fixes: 0908c5aca3 ("usb: typec: tcpm: AMS and Collision Avoidance")
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210531164928.2368606-1-kyletso@google.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 063933f47a
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I0d3d3ed90758e39b033082001f2e9f782cfc26ef
2021-06-04 14:02:23 +00:00
..
2021-05-21 13:17:07 -07:00
2021-04-09 09:29:17 +02:00
2021-04-29 13:57:47 +02:00
2021-05-15 09:28:55 +02:00
2021-03-04 11:37:59 +01:00
2021-02-07 15:37:17 +01:00
2021-05-20 15:35:25 +02:00
2021-03-11 19:35:01 +01:00
2021-04-02 15:25:50 +02:00
2021-03-07 12:33:33 +01:00
2021-05-15 13:25:01 +02:00
2021-05-14 09:50:31 +02:00
2021-03-11 16:02:50 +00:00