All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] phy: tegra: xusb: Enable usb role switch attribute
@ 2022-09-28 12:56 ` Haotien Hsu
  0 siblings, 0 replies; 5+ messages in thread
From: Haotien Hsu @ 2022-09-28 12:56 UTC (permalink / raw)
  To: Philipp Zabel
  Cc: Haotien Hsu, Wayne Chang, JC Kuo, Kishon Vijay Abraham I,
	Vinod Koul, Thierry Reding, Jonathan Hunter, linux-phy,
	linux-tegra, linux-kernel

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(+)

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


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH v2] phy: tegra: xusb: Enable usb role switch attribute
@ 2022-09-26  5:05 Haotien Hsu
  0 siblings, 0 replies; 5+ messages in thread
From: Haotien Hsu @ 2022-09-26  5:05 UTC (permalink / raw)
  To: haotienh; +Cc: stable

This patch enables the usb-role-switch attribute to have the user-space
check current device role of otg capability ports

Cc: stable@vger.kernel.org
Signed-off-by: Haotien Hsu <haotienh@nvidia.com>
---
V1->V2
- Fix typo and changelog 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-29  5:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-28 12:56 [PATCH v2] phy: tegra: xusb: Enable usb role switch attribute Haotien Hsu
2022-09-28 12:56 ` Haotien Hsu
2022-09-29  5:41 ` Vinod Koul
2022-09-29  5:41   ` Vinod Koul
  -- strict thread matches above, loose matches on Subject: below --
2022-09-26  5:05 Haotien Hsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.