UPSTREAM: usb: dwc2: Reorder AHBIDLE and CSFTRST in dwc2_core_reset()
authorJacob Chen <jacob2.chen@rock-chips.com>
Tue, 16 Aug 2016 01:14:01 +0000 (09:14 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 18 Aug 2016 10:50:54 +0000 (18:50 +0800)
commit0cfd1526dcdc846160ec555ab9e8d2bc9288157d
tree87cc18f1bfc1c6efa83e714fa58f45dd63e2b356
parenta4dac316c91a9930dfdf74d2274db41362a10b53
UPSTREAM: usb: dwc2: Reorder AHBIDLE and CSFTRST in dwc2_core_reset()

According to the databook, the core soft reset should be done before
checking for AHBIDLE. The gadget version of core reset had it correct
but the hcd version did not. This fixes the hcd version.

Change-Id: I49540085036982e6c496a3b911805f0b67fa79e1
Signed-off-by: John Youn <johnyoun@synopsys.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit b8ccc593eeeacde0e6794c4dcec0a57eba7356e6)
drivers/usb/dwc2/core.c