OSDN Git Service

usb: roles: Find the muxes by also matching against the device node
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 13 Feb 2019 07:45:54 +0000 (10:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2019 09:52:25 +0000 (10:52 +0100)
commitec69e9533c4879c81eb7122771792864eb49af35
tree25afd3f9bc970b7f21838a90b88c2340344c0399
parent80e04837a40f6f1c8e93437be3f772c967a41d2f
usb: roles: Find the muxes by also matching against the device node

When the connections are defined in firmware, struct
device_connection will have the fwnode member pointing to
the device node (struct fwnode_handle) of the requested
device, and the endpoint will not be used at all in that
case.

Acked-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Jun Li <jun.li@nxp.com>
Tested-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/roles/class.c
include/linux/usb/role.h