dwc_otg: Support switch host and device directly via sysfs.
authorYu Wang <yu.y.wang@intel.com>
Thu, 12 Apr 2012 09:51:26 +0000 (17:51 +0800)
committerbuildbot <buildbot@intel.com>
Tue, 17 Apr 2012 11:37:17 +0000 (04:37 -0700)
commitb6755cee529120c44cf1ef1d7537a9dacab8d727
treea7ba1cf0747adfefab3d1be765469178913f1f95
parent08cc462709f797cc9eea0648d901f46906813d92
dwc_otg: Support switch host and device directly via sysfs.

BZ: 31708

Currently, the sysfs interface can't support switch HOST to DEVICE or
DEVICE to HOST directly. We have to restart whole HVP platform to do
this switch. There are two patches to fix this issue, this patch is for
host side fixing.

Fix build warning, and merge part of code about vbus control from Synopsys
reference code.

Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Change-Id: Ic6ddb01174a8990b833d0f2b27a8a7447d69b7e2
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/43423
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/usb/host/xhci-dwc.c
drivers/usb/otg/dwc_otg3.c
include/linux/usb/dwc_otg3.h