linux/drivers/usb/typec
Badhri Jagan Sridharan 2b8c956ea6 usb: typec: tcpm: Skip sink_cap query only when VDM sm is busy
When port partner responds "Not supported" to the DiscIdentity command,
VDM state machine can remain in NVDM_STATE_ERR_TMOUT and this causes
querying sink cap to be skipped indefinitely. Hence check for
vdm_sm_running instead of checking for VDM_STATE_DONE.

Fixes: 8dc4bd0736 ("usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)")
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210318064805.3747831-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-18 09:47:47 +01:00
..
altmodes usb: typec: displayport: Fill the negotiated SVDM Version in the header 2021-02-09 11:48:55 +01:00
mux usb: typec: intel_pmc_mux: Configure HPD first for HPD+IRQ request 2020-12-28 15:44:26 +01:00
tcpm usb: typec: tcpm: Skip sink_cap query only when VDM sm is busy 2021-03-18 09:47:47 +01:00
ucsi usb: typec: ucsi: Determine common SVDM Version 2021-02-09 11:48:55 +01:00
bus.c usb: typec: altmode: Fix typec_altmode_get_partner sometimes returning an invalid pointer 2020-04-22 19:23:19 +02:00
bus.h usb: typec: altmode: Remove the notification chain 2020-02-12 10:51:21 -08:00
class.c usb: typec: Manage SVDM version 2021-02-09 11:48:54 +01:00
hd3ss3220.c usb: typec: hd3ss3220: Use OF graph API to get the connector fwnode 2020-10-02 15:28:18 +02:00
Kconfig usb: typec: tps6598x: Export some power supply properties 2020-12-07 15:28:04 +01:00
Makefile usb: typec: Add QCOM PMIC typec detection driver 2020-10-09 15:14:43 +02:00
mux.c usb: fix kernel-doc markups 2020-10-28 13:18:56 +01:00
qcom-pmic-typec.c usb: typec: Add QCOM PMIC typec detection driver 2020-10-09 15:14:43 +02:00
stusb160x.c usb: typec: stusb160x: fix power-opmode property with typec-power-opmode 2020-11-27 14:44:26 +01:00
tps6598x.c usb: typec: Remove vdo[3] part of tps6598x_rx_identity_reg struct 2021-03-17 21:30:47 +01:00