aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/core.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2020-07-24 17:47:02 +0000
committerGreg Kroah-Hartman <[email protected]>2020-07-29 12:11:05 +0000
commit754498c1d6369d47b6433e9a05ba926255c2d699 (patch)
tree12a07c97a5165d62e191ab8f73d3ed3387762d4d /drivers/usb/cdns3/core.c
parentusb: typec: tcpm: Fix AB BA lock inversion between tcpm code and the alt-mode... (diff)
downloadkernel-754498c1d6369d47b6433e9a05ba926255c2d699.tar.gz
kernel-754498c1d6369d47b6433e9a05ba926255c2d699.zip
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 <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions