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
Kconfig
Makefile
bus.c
bus.h
class.c usb: typec: Manage SVDM version 2021-02-09 11:48:54 +01:00
hd3ss3220.c
mux.c
qcom-pmic-typec.c
stusb160x.c
tps6598x.c usb: typec: Remove vdo[3] part of tps6598x_rx_identity_reg struct 2021-03-17 21:30:47 +01:00