usb: typec: Port mapping utility
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 7 Apr 2021 06:55:52 +0000 (09:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:00:00 +0000 (16:00 +0200)
commitae196ddb0d3186bc08e529b8ea4bf62161ddfce2
tree874f3934376726b9207c5510e8223fd106c4ea15
parent4050f2683f2c3151dc3dd1501ac88c57caf810ff
usb: typec: Port mapping utility

Adding functions that can be used to link/unlink ports -
USB ports, TBT3/USB4 ports, DisplayPorts and so on - to
the USB Type-C connectors they are attached to inside a
system. The symlink that is created for the port device is
named "connector".

Initially only ACPI is supported. ACPI port object shares
the _PLD (Physical Location of Device) with the USB Type-C
connector that it's attached to.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210407065555.88110-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/Makefile
drivers/usb/typec/class.c
drivers/usb/typec/class.h
drivers/usb/typec/port-mapper.c [new file with mode: 0644]
include/linux/usb/typec.h