WSL2-Linux-Kernel/drivers/usb/typec
Hans de Goede 754498c1d6 usb: typec: tcpm: Add WARN_ON ensure we are not trying to send 2 VDM packets at the same time
The tcpm.c code for sending VDMs assumes that there will only be one VDM
in flight at the time. The "queue" used by tcpm_queue_vdm is only 1 entry
deep.

This assumes that the higher layers (tcpm state-machine and alt-mode
drivers) ensure that queuing a new VDM before the old one has been
completely send (or it timed out) add a WARN_ON to check for this.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200724174702.61754-6-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-29 14:11:05 +02:00
..
altmodes usb: typec: altmodes: displayport: Supply missing displayport.h include file 2020-07-09 16:46:59 +02:00
mux usb: typec: intel_pmc_mux: Avoid connect request on disconnect 2020-07-21 13:38:21 +02:00
tcpm usb: typec: tcpm: Add WARN_ON ensure we are not trying to send 2 VDM packets at the same time 2020-07-29 14:11:05 +02:00
ucsi usb: typec: Replace HTTP links with HTTPS ones 2020-07-15 16:33:50 +02:00
Kconfig usb: typec: Ensure USB_ROLE_SWITCH is set as a dependency for tps6598x 2020-05-21 09:36:42 +02:00
Makefile usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller 2019-10-04 14:18:48 +02: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: Comment correction for typec_partner_register_altmode 2020-07-21 13:38:21 +02:00
hd3ss3220.c usb: typec: hd3ss3220: Give the connector fwnode to the port device 2019-11-04 16:03:36 +01:00
mux.c usb: typec: mux: Allow the mux handles to be requested with fwnode 2020-03-04 11:12:49 +01:00
tps6598x.c usb: typec: Replace HTTP links with HTTPS ones 2020-07-15 16:33:50 +02:00