summaryrefslogtreecommitdiffstats
path: root/include/linux/usb/cdc.h
diff options
context:
space:
mode:
authorKyle Tso <kyletso@google.com>2021-06-01 00:49:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-04 13:24:16 +0200
commit063933f47a7af01650af9c4fbcc5831f1c4eb7d9 (patch)
tree07d2a92b5e3f049219f140a5257f9b8d6e0f79ee /include/linux/usb/cdc.h
parent4d2aa178d2ad2fb156711113790dde13e9aa2376 (diff)
downloadlinux-063933f47a7af01650af9c4fbcc5831f1c4eb7d9.tar.gz
linux-063933f47a7af01650af9c4fbcc5831f1c4eb7d9.tar.bz2
linux-063933f47a7af01650af9c4fbcc5831f1c4eb7d9.zip
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: 64f7c494a3c0 ("typec: tcpm: Add support for sink PPS related messages") Fixes: 0908c5aca31e ("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>
Diffstat (limited to 'include/linux/usb/cdc.h')
0 files changed, 0 insertions, 0 deletions