OSDN Git Service

usb: dwc3: Add support for POR upon composition switch
authorHemant Kumar <hemantk@codeaurora.org>
Thu, 27 Aug 2015 00:18:36 +0000 (17:18 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:07:10 +0000 (11:07 -0700)
commit92f418332c16491d233a6dfe381a441ccccae0b1
treeb5cd7a0de8634367de374f6de5c64fdf9858b90e
parenta8028071dd84eea4a3c36eb972e0abac5d77696a
usb: dwc3: Add support for POR upon composition switch

Composition switch to GSI transport based composition from
another GSI transport based composition requires power on
reset of USB controller to synchronize operation with USB
wrapper for GSI. Specifically GSI_EN bit cannot be
cleared without performing usb controller reset. Hence
introduce gadget restart operation to simulate vbus off
and vbus on and perform  this operation from gsi bind
config.

Change-Id: Ie4695807c73c2d14c0d9e17c486f34a90fd93ddb
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c
include/linux/usb/gadget.h