OpenCloudOS-Kernel/drivers/usb/typec
Ajay Gupta 706f4bbf18 usb: typec: ucsi_ccg: workaround for NVIDIA test device
NVIDIA VirtualLink (svid 0x955) has two altmode, vdo=0x1 for
VirtualLink DP mode and vdo=0x3 for NVIDIA test mode. NVIDIA
test device FTB (Function Test Board) reports altmode list with
vdo=0x3 first and then vdo=0x1. The list is:
 SVID   VDO
0xff01  0xc05
0x28de  0x8085
0x955   0x3
0x955   0x1

Current logic to assign mode value is based on order
in altmode list. This causes a mismatch of CON and SOP altmodes
since NVIDIA GPU connector has order of vdo=0x1 first and then
vdo=0x3. Fixing this by changing the order of vdo values
reported by NVIDIA test device. the new list will be:

 SVID   VDO
0xff01  0xc05
0x28de  0x8085
0x955   0x1085
0x955   0x3

Also NVIDIA VirtualLink (svid 0x955) uses pin E for display mode.
NVIDIA test device reports vdo of 0x1 so make sure vdo values
always have pin E assignement.

Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200310121912.57879-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-12 09:49:28 +01:00
..
altmodes usb: typec: Add parameter for the VDO to typec_altmode_enter() 2020-01-09 10:48:19 +01:00
mux usb: typec: driver for Intel PMC mux control 2020-03-04 11:13:30 +01:00
tcpm usb: typec: tcpm: move to SNK_UNATTACHED if sink removed for DRP 2020-03-04 10:51:21 +01:00
ucsi usb: typec: ucsi_ccg: workaround for NVIDIA test device 2020-03-12 09:49:28 +01:00
Kconfig usb: typec: add dependency for TYPEC_HD3SS3220 2019-10-10 12:34:05 +02:00
Makefile usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller 2019-10-04 14:18:48 +02:00
bus.c usb: typec: altmode: Remove the notification chain 2020-02-12 10:51:21 -08:00
bus.h usb: typec: altmode: Remove the notification chain 2020-02-12 10:51:21 -08:00
class.c usb: typec: mux: Add helpers for setting the mux state 2020-03-04 11:11:52 +01:00
hd3ss3220.c usb: typec: hd3ss3220: Give the connector fwnode to the port device 2019-11-04 16:03:36 +01:00
mux.c usb: typec: mux: Allow the mux handles to be requested with fwnode 2020-03-04 11:12:49 +01:00
tps6598x.c usb: typec: tps6598x: Start using struct typec_operations 2019-11-04 16:03:34 +01:00