usb: roles: Link the switch to its connector
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 13 Feb 2024 13:00:17 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:02:42 +0000 (17:02 +0100)
commit9a270ec7bfb0b928ff7c11a4b1f8a026cd20e6b4
treeb756221be63bf48f845020024facb3af41f65918
parent503d6ed00ff744ae5c55d84e30a6c622c445fff6
usb: roles: Link the switch to its connector

This is probable useful information to have in user space in
general, but it's primarily needed for the xHCI DbC (Debug
Capability). When xHCI DbC is being used, the USB port needs
to be muxed to the xHCI even in device role. In xHCI DbC mode,
the xHCI is the USB device controller.

Tested-by: Uday Bhat <uday.m.bhat@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20240213130018.3029991-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-class-usb_role
drivers/usb/roles/class.c