OSDN Git Service

usb: typec: ucsi: Support for DisplayPort alt mode
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 23 Apr 2019 14:21:49 +0000 (17:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 09:04:55 +0000 (11:04 +0200)
commitaf8622f6a585d8d82b11cd7987e082861fd0edd3
treea483bafb5ea1762e6734754a9bf05ee4a4e6461e
parentad74b8649beaf1a22cf8641324e3321fa0269d16
usb: typec: ucsi: Support for DisplayPort alt mode

This makes it possible to bind a driver to a DisplayPort
alt mode adapter devices.

The driver attempts to cope with the limitations of UCSI by
"emulating" behaviour and attempting to guess things when
ever possible in order to satisfy the requirements the
standard DisplayPort alt mode driver has.

Tested-by: Ajay Gupta <ajayg@nvidia.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/Makefile
drivers/usb/typec/ucsi/displayport.c [new file with mode: 0644]
drivers/usb/typec/ucsi/ucsi.c
drivers/usb/typec/ucsi/ucsi.h