OpenCloudOS-Kernel/include/linux/usb
Kyle Tso 063933f47a 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>
2021-06-04 13:24:16 +02:00
..
audio-v2.h
audio-v3.h
audio.h
c67x00.h
ccid.h
cdc-wdm.h
cdc.h
cdc_ncm.h
ch9.h usb: common: move function's kerneldoc next to its definition 2021-03-10 09:37:17 +01:00
chipidea.h
composite.h
ehci-dbgp.h
ehci_def.h
ehci_pdriver.h usb: ehci: add spurious flag to disable overcurrent checking 2021-03-23 12:36:17 +01:00
ezusb.h
functionfs.h
g_hid.h
gadget.h
gadget_configfs.h
hcd.h
input.h
iowarrior.h
irda.h
isp116x.h
isp1301.h
isp1362.h
isp1760.h
m66592.h
musb-ux500.h
musb.h
net2280.h
of.h
ohci_pdriver.h
otg-fsm.h
otg.h
pd.h usb: pd: Set PD_T_SINK_WAIT_CAP to 310ms 2021-06-02 16:59:29 +02:00
pd_ado.h
pd_bdo.h
pd_ext_sdb.h usb: typec: tcpm: Properly handle Alert and Status Messages 2021-06-04 13:24:16 +02:00
pd_vdo.h
phy.h
phy_companion.h
quirks.h
r8a66597.h
r8152.h
renesas_usbhs.h
rndis_host.h
role.h
serial.h USB: serial: add generic support for TIOCSSERIAL 2021-04-08 09:46:02 +02:00
sl811.h
storage.h
tcpm.h
tegra_usb_phy.h
typec.h usb: typec: Add typec_port_register_altmodes() 2021-04-09 16:07:41 +02:00
typec_altmode.h
typec_dp.h
typec_mux.h
typec_tbt.h
uas.h
ulpi.h
usb338x.h
usb_phy_generic.h
usbnet.h usbnet: add method for reporting speed without MII 2021-04-06 16:22:36 -07:00
xhci-dbgp.h