diff options
author | 2025-04-24 08:44:28 +0000 | |
---|---|---|
committer | 2025-05-01 17:40:01 +0200 | |
commit | 364618c89d4c57c85e5fc51a2446cd939bf57802 (patch) | |
tree | fde20af099fe40e11afbdc56247d186ba1f319ba /scripts/lib/kdoc/kdoc_files.py | |
parent | usb: misc: onboard_usb_dev: fix support for Cypress HX3 hubs (diff) | |
download | linux-rng-364618c89d4c57c85e5fc51a2446cd939bf57802.tar.xz linux-rng-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 <stable@kernel.org>
Fixes: af8622f6a585 ("usb: typec: ucsi: Support for DisplayPort alt mode")
Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250424084429.3220757-2-akuchynski@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions