summaryrefslogtreecommitdiff
path: root/drivers/usb/chipidea/udc.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2017-03-27 10:54:27 +0800
committerPeter Chen <peter.chen@nxp.com>2017-04-14 09:26:37 +0800
commita932a8041ff9941a244619555f1c75ecf299f662 (patch)
tree327a92c46c42a92c000557389777540fdad74737 /drivers/usb/chipidea/udc.c
parent4f4555cfe704913ce4ce836ab2707825d784a7cc (diff)
usb: chipidea: core: add sysfs group
Sometimes, the user needs to adjust some properties for controllers, eg the role for controller, we add sysfs group for them. The attribute 'role' is used to switch host/gadget role dynamically, the uewr can read the current role, and write the other role compare to current one to finish the switch. Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
-rw-r--r--drivers/usb/chipidea/udc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
index be166c6ecb2d..c979cecdd6f7 100644
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -1978,6 +1978,8 @@ static void udc_id_switch_for_host(struct ci_hdrc *ci)
*/
if (ci->is_otg)
hw_write_otgsc(ci, OTGSC_BSVIE | OTGSC_BSVIS, OTGSC_BSVIS);
+
+ ci->vbus_active = 0;
}
/**