Skip to contentSkip to conversation

phy: tegra: xusb: Enable usb role switch attribute

PATCH Applied Haotien Hsu 2 participants 2 messages Sep 28, 2022 – Sep 29, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 phy: tegra: xusb: Enable usb role switch attribute

From: Wayne Chang <[email protected]>

This patch enables the usb-role-switch attribute and lets users check the current device role of the otg capability ports

---
V1->V2
- Fix typo and changelog line limit

---
 drivers/phy/tegra/xusb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/tegra/xusb.c +1 -0
index aa5237eacd29..220ab7719ade 100644
@@ -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;
 
Signature · 7 lines
2.25.1


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
maintainer Applied
#1 lore raw
Quoted 4 lines · Haotien Hsu

From: Wayne Chang <[email protected]>

This patch enables the usb-role-switch attribute and lets users check the current device role of the otg capability ports

Applied, thanks

Signature · 6 lines
~Vinod

-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy