]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ucsi: Add UCSI_USB4_IMPLIES_USB quirk for X1E80100
authorKrishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Thu, 12 Mar 2026 10:14:31 +0000 (15:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2026 15:03:14 +0000 (16:03 +0100)
commit0c8ee850572b6850a78ef4c83af2acd4909a4519
treeb87863d18db97991c849fe1ff4e1ee2f09edffc7
parent849fbecdf7e1d4b91a31e6aa72d15e8938bddc5c
usb: typec: ucsi: Add UCSI_USB4_IMPLIES_USB quirk for X1E80100

On X1E80100, when we connect a USB4 capable dock, the PARTNER_FLAGS
indicate USB4_GEN3 being set whilst keeping the PARTNER_FLAGS_USB
cleared. Due to this, during ucsi_partner_change call, the usb role
is marked as ROLE_NONE and passed to DWC3 controller the same way.

Fix this by adding UCSI_USB4_IMPLIES_USB quirk and check for it to
decide and pass on proper ROLE information to DWC3 layer.

Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260312101431.2375709-1-krishna.kurapati@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c
drivers/usb/typec/ucsi/ucsi.h
drivers/usb/typec/ucsi/ucsi_glink.c