]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: Give the mux drivers all the details regarding the port state
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 30 Dec 2019 14:26:08 +0000 (17:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2020 09:50:13 +0000 (10:50 +0100)
commit75611eb7bed1cd186385ab4ceb5c054d5d8e09b6
tree184a7264296604b78ccd26b1e9942033f9f7f714
parent68e2ad19d7b221841f50c5e2f7248909cfa98d7c
usb: typec: Give the mux drivers all the details regarding the port state

Passing all the details that the alternate mode drivers
provide to the mux drivers during mode changes.

The mux drivers will in practice need to be able to make
decisions on their own. It is not enough that they get only
the requested port state. With the Thunderbolt 3 alternate
mode for example the mux driver will need to consider also
the capabilities of the cable before configuring the mux.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20191230142611.24921-13-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/bus.c
drivers/usb/typec/class.c
drivers/usb/typec/mux/pi3usb30532.c
include/linux/usb/typec_mux.h