UPSTREAM: usb: dwc3: core: re-factor init and exit paths
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 16 May 2016 07:49:01 +0000 (10:49 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit868e4f36ab8f0bbb4652ee07e21fab8831cacd4b
tree785e3cdd054049e0f7762f6733789c8e59913158
parent5fcc187648cf490387b2be2aed6d1ff83f6a6a9d
UPSTREAM: usb: dwc3: core: re-factor init and exit paths

The idea of this patch is for dwc3_core_init() to
abstract all the details about how to initialize
dwc3 and dwc3_core_exit() to do the same for
teardown.

With this, we can simplify suspend/resume operations
by a large margin and always know that we're going
to start dwc3 from a known starting point.

Change-Id: I3193f375fa153e1636de8f86fb752ef88afa5d95
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
(cherry picked from commit c499ff71ff2a281366c6ec7a904c547d806cbcd1)

Conflicts:
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.c