[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220921112500.798282-1-haotienh@nvidia.com>
Date: Wed, 21 Sep 2022 19:25:00 +0800
From: Haotien Hsu <haotienh@...dia.com>
To: <p.zabel@...gutronix.de>
CC: <jckuo@...dia.com>, <kishon@...com>, <vkoul@...nel.org>,
<thierry.reding@...il.com>, <jonathanh@...dia.com>,
<linux-phy@...ts.infradead.org>, <linux-tegra@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, Wayne Chang <waynec@...dia.com>,
Haotien Hsu <haotienh@...dia.com>
Subject: [PATCH] phy: tegra: xusb: Enable usb role switch attribute
From: Wayne Chang <waynec@...dia.com>
This patch enables the usb-role-switch atrribute
to have the user-space check current device role
of otg cability ports
Signed-off-by: Wayne Chang <waynec@...dia.com>
Signed-off-by: Haotien Hsu <haotienh@...dia.com>
---
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
Powered by blists - more mailing lists