diff mbox series

[v2] phy: tegra: xusb: Enable usb role switch attribute

Message ID 20220928125640.2219402-1-haotienh@nvidia.com
State Accepted
Headers show
Series [v2] phy: tegra: xusb: Enable usb role switch attribute | expand

Commit Message

Haotien Hsu Sept. 28, 2022, 12:56 p.m. UTC
From: Wayne Chang <waynec@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@nvidia.com>
Signed-off-by: Haotien Hsu <haotienh@nvidia.com>
---
V1->V2
- Fix typo and changelog line limit
---
 drivers/phy/tegra/xusb.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Vinod Koul Sept. 29, 2022, 5:41 a.m. UTC | #1
On 28-09-22, 20:56, Haotien Hsu wrote:
> From: Wayne Chang <waynec@nvidia.com>
> 
> This patch enables the usb-role-switch attribute and lets users check
> the current device role of the otg capability ports

Applied, thanks
diff mbox series

Patch

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;