linux/drivers/usb/typec
Ajay Gupta 170a6726d0 usb: typec: ucsi: add support for separate DP altmode devices
CCGx controller used on NVIDIA GPU card has two separate display
altmode for two DP pin assignments. UCSI specification doesn't
prohibits using separate display altmode.

Current UCSI Type-C framework expects only one display altmode for
all DP pin assignment. This patch squashes two separate display
altmode into single altmode to support controllers with separate
display altmode. We first read all the alternate modes of connector
and then run through it to know if there are separate display
altmodes. If so, it prepares a new port altmode set after squashing
two or more separate altmodes into one.

Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20191230133431.63445-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-30 20:11:32 +01:00
..
altmodes usb: typec: Add driver for NVIDIA Alt Modes 2019-04-25 11:04:56 +02:00
mux usb: typec: Registering real device entries for the muxes 2019-06-03 10:55:38 +02:00
tcpm usb: typec: fusb302: Fix an undefined reference to 'extcon_get_state' 2019-12-17 16:02:49 +01:00
ucsi usb: typec: ucsi: add support for separate DP altmode devices 2019-12-30 20:11:32 +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: Make sure an alt mode exist before getting its partner 2019-06-12 17:13:02 +02:00
bus.h usb: typec: Registering real device entries for the muxes 2019-06-03 10:55:38 +02:00
class.c usb: typec: fix use after free in typec_register_port() 2019-12-10 11:41:19 +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: Switch to use fwnode_property_count_uXX() 2019-07-25 11:07:42 +02:00
tps6598x.c usb: typec: tps6598x: Start using struct typec_operations 2019-11-04 16:03:34 +01:00