diff options
author | Wayne Chang <waynec@nvidia.com> | 2022-09-28 14:56:40 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-09-29 07:42:31 +0200 |
commit | 03b756d293484057b4248695345f4344b174af00 (patch) | |
tree | 0c2c5fc8330fbc37e9cd678635c9873d85a9f04e /drivers/phy | |
parent | phy: mediatek: fix build warning of FIELD_PREP() (diff) | |
download | linux-03b756d293484057b4248695345f4344b174af00.tar.xz linux-03b756d293484057b4248695345f4344b174af00.zip |
phy: tegra: xusb: Enable usb role switch attribute
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>
Link: https://lore.kernel.org/r/20220928125640.2219402-1-haotienh@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/tegra/xusb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c index d04a80c436c3..82fff4d9f4e6 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; |