diff options
author | Peter Chen <peter.chen@nxp.com> | 2017-03-27 05:54:27 +0300 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2017-04-14 04:26:37 +0300 |
commit | a932a8041ff9941a244619555f1c75ecf299f662 (patch) | |
tree | 327a92c46c42a92c000557389777540fdad74737 /drivers/usb/chipidea/udc.c | |
parent | 4f4555cfe704913ce4ce836ab2707825d784a7cc (diff) | |
download | linux-a932a8041ff9941a244619555f1c75ecf299f662.tar.xz |
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.c | 2 |
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; } /** |