]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: typec: ucsi: yoga-c630: remove extra AltModes for port 1
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sat, 21 Jun 2025 18:12:59 +0000 (21:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jun 2025 14:40:50 +0000 (15:40 +0100)
commiteebd39f8a8998582dc177ea04172b01290e4ecce
treea3369944bf7efe2a7f657baa2dc7fe01ca8c8037
parente0c48e42d818aba4ffadf4735352844fd7e0ec9e
usb: typec: ucsi: yoga-c630: remove extra AltModes for port 1

On Lenovo Yoga C630 the EC firmware is buggy and it cat return altmodes
for a device pushed into the port 0 (right) when the driver asks for
altmodes for port 1 (left). Since the left Type-C port doesn't support
DP anyway, ignore all UCSI_GET_ALTERNATE_MODES commands destined to the
port 1.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250621-c630-ucsi-v1-4-a86de5e11361@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi_yoga_c630.c