aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2021-04-19 18:26:29 +0000
committerJohn Stultz <john.stultz@linaro.org>2021-04-26 21:56:55 +0000
commit85bda53bbb46f486aee879647ae7b1b160d9157f (patch)
tree8b990a3fc1a7be3d325bab4df75ce7cca825f631
parent9679b5124427e77cff505e7325e80c4589ee6e18 (diff)
downloadandroid-dev-dev/hikey960-5.12.tar.gz
test userland switchingdev/hikey960-5.12
Change-Id: I3a5cd600d092b64e0c10b4047189528d1086e86c
-rw-r--r--drivers/misc/hisi_hikey_usb.c1
-rw-r--r--drivers/usb/dwc3/drd.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/hisi_hikey_usb.c b/drivers/misc/hisi_hikey_usb.c
index 989d7d129469..8790b57775e2 100644
--- a/drivers/misc/hisi_hikey_usb.c
+++ b/drivers/misc/hisi_hikey_usb.c
@@ -217,6 +217,7 @@ static int hisi_hikey_usb_probe(struct platform_device *pdev)
INIT_WORK(&hisi_hikey_usb->work, relay_set_role_switch);
mutex_init(&hisi_hikey_usb->lock);
+ hub_role_switch.allow_userspace_control = true;
hub_role_switch.fwnode = dev_fwnode(dev);
hub_role_switch.set = hub_usb_role_switch_set;
hub_role_switch.driver_data = hisi_hikey_usb;
diff --git a/drivers/usb/dwc3/drd.c b/drivers/usb/dwc3/drd.c
index e2b68bb770d1..b203e3d87291 100644
--- a/drivers/usb/dwc3/drd.c
+++ b/drivers/usb/dwc3/drd.c
@@ -555,6 +555,7 @@ static int dwc3_setup_role_switch(struct dwc3 *dwc)
mode = DWC3_GCTL_PRTCAP_DEVICE;
}
+ dwc3_role_switch.allow_userspace_control = true;
dwc3_role_switch.fwnode = dev_fwnode(dwc->dev);
dwc3_role_switch.set = dwc3_usb_role_switch_set;
dwc3_role_switch.get = dwc3_usb_role_switch_get;