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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:36 +0000 (12:32 +0300)
commitc499ff71ff2a281366c6ec7a904c547d806cbcd1
treeeeff389fba58f7b0e867a4ca61acb0a27081b288
parentbcdb3272e889f4d2a5c8efc5e12b0fb2dcbf75e9
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.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c