]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: roles: Add a description for the class to Kconfig
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 12 Dec 2018 17:13:55 +0000 (20:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 16:45:53 +0000 (17:45 +0100)
commitd7357b247f3ce1eaeb10fc4529fa8b446072773c
treed3e8bd70b101f1d1e67da41d6ec8e6983ca15984
parent685689d4f2c6d11441545cdcf9a8b2f84a141761
usb: roles: Add a description for the class to Kconfig

commit c3788cd9963eb2e77de3c24142fb7c67b61f1a26 upstream.

That makes the USB role switch support option visible and
selectable for the user. The class driver is also moved to
drivers/usb/roles/ directory.

This will fix an issue that we have with the Intel USB role
switch driver on systems that don't have USB Type-C connectors:

Intel USB role switch driver depends on the USB role switch
class as it should, but since there was no way for the user
to enable the USB role switch class, there was also no way
to select that driver. USB Type-C drivers select the USB
role switch class which makes the Intel USB role switch
driver available and therefore hides the problem.

So in practice Intel USB role switch driver was depending on
USB Type-C drivers.

Fixes: f6fb9ec02be1 ("usb: roles: Add Intel xHCI USB role switch driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/Kconfig
drivers/usb/common/Makefile
drivers/usb/roles/Kconfig
drivers/usb/roles/Makefile
drivers/usb/roles/class.c [moved from drivers/usb/common/roles.c with 100% similarity]