projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84513ec
)
phy: tegra: xusb: Enable usb role switch attribute
author
Wayne Chang
<waynec@nvidia.com>
Wed, 28 Sep 2022 12:56:40 +0000
(20:56 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Thu, 29 Sep 2022 05:42:31 +0000
(11:12 +0530)
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>
drivers/phy/tegra/xusb.c
patch
|
blob
|
history
diff --git
a/drivers/phy/tegra/xusb.c
b/drivers/phy/tegra/xusb.c
index
d04a80c
..
82fff4d
100644
(file)
--- 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;