linux/include
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
..
acpi ACPI: scan: Use unique number for instance_no 2021-03-30 14:32:06 +02:00
asm-generic ANDROID: vmlinux.lds.h: Keep .eh_frame with CFI 2021-06-02 21:54:54 +00:00
clocksource
crypto Merge 5.10.37 into android12-5.10 2021-05-15 09:28:55 +02:00
drm UPSTREAM: drm/drm_vblank: set the dma-fence timestamp during send_vblank_event 2021-04-07 14:20:07 +00:00
dt-bindings
keys security: keys: trusted: fix TPM2 authorizations 2021-05-14 09:50:20 +02:00
kunit
kvm
linux FROMGIT: usb: typec: tcpm: Properly handle Alert and Status Messages 2021-06-04 14:02:23 +00:00
math-emu
media Revert "Revert "media: v4l2-ctrls: fix reference to freed memory"" 2021-05-21 13:17:06 -07:00
memory
misc
net Merge 5.10.42 into android12-5.10 2021-06-03 18:47:38 +02:00
pcmcia
ras
rdma
scsi Fix misc new gcc warnings 2021-05-11 14:47:36 +02:00
soc
sound FROMGIT: ASoC: soc-component: Add snd_soc_pcm_component_ack 2021-04-23 18:42:37 -07:00
target
trace ANDROID: signal: Add vendor hook for memory reaping 2021-06-03 20:59:15 +00:00
uapi ANDROID: fuse/passthrough: API V2 with __u32 open argument 2021-05-31 09:48:43 +01:00
vdso
video
xen
OWNERS ANDROID: Add OWNERS files referring to the respective android-mainline OWNERS 2021-04-03 14:11:30 +00:00