Commit 03b756d2 authored by Wayne Chang's avatar Wayne Chang Committed by Vinod Koul

phy: tegra: xusb: Enable usb role switch attribute

This patch enables the usb-role-switch attribute and lets users check
the current device role of the otg capability ports
Signed-off-by: default avatarWayne Chang <waynec@nvidia.com>
Signed-off-by: default avatarHaotien Hsu <haotienh@nvidia.com>
Link: https://lore.kernel.org/r/20220928125640.2219402-1-haotienh@nvidia.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 84513ecc
......@@ -656,6 +656,7 @@ static int tegra_xusb_setup_usb_role_switch(struct tegra_xusb_port *port)
struct usb_role_switch_desc role_sx_desc = {
.fwnode = dev_fwnode(&port->dev),
.set = tegra_xusb_role_sw_set,
.allow_userspace_control = true,
};
int err = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment