[PATCH v2] phy: tegra: xusb: Enable usb role switch attribute
Haotien Hsu
haotienh at nvidia.com
Wed Sep 28 05:56:40 PDT 2022
From: Wayne Chang <waynec at nvidia.com>
This patch enables the usb-role-switch attribute and lets users check
the current device role of the otg capability ports
Signed-off-by: Wayne Chang <waynec at nvidia.com>
Signed-off-by: Haotien Hsu <haotienh at nvidia.com>
---
V1->V2
- Fix typo and changelog line limit
---
drivers/phy/tegra/xusb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c
index aa5237eacd29..220ab7719ade 100644
--- a/drivers/phy/tegra/xusb.c
+++ b/drivers/phy/tegra/xusb.c
@@ -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;
--
2.25.1
More information about the linux-phy
mailing list