aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdnsp-ring.c
diff options
context:
space:
mode:
authorAndrei Kuchynski <[email protected]>2025-04-24 08:44:28 +0000
committerGreg Kroah-Hartman <[email protected]>2025-05-01 15:40:01 +0000
commit364618c89d4c57c85e5fc51a2446cd939bf57802 (patch)
treefde20af099fe40e11afbdc56247d186ba1f319ba /drivers/usb/cdns3/cdnsp-ring.c
parentusb: misc: onboard_usb_dev: fix support for Cypress HX3 hubs (diff)
downloadkernel-364618c89d4c57c85e5fc51a2446cd939bf57802.tar.gz
kernel-364618c89d4c57c85e5fc51a2446cd939bf57802.zip
usb: typec: ucsi: displayport: Fix deadlock
This patch introduces the ucsi_con_mutex_lock / ucsi_con_mutex_unlock functions to the UCSI driver. ucsi_con_mutex_lock ensures the connector mutex is only locked if a connection is established and the partner pointer is valid. This resolves a deadlock scenario where ucsi_displayport_remove_partner holds con->mutex waiting for dp_altmode_work to complete while dp_altmode_work attempts to acquire it. Cc: stable <[email protected]> Fixes: af8622f6a585 ("usb: typec: ucsi: Support for DisplayPort alt mode") Signed-off-by: Andrei Kuchynski <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-ring.c')
0 files changed, 0 insertions, 0 deletions