usb: dwc2: Reorder AHBIDLE and CSFTRST in dwc2_core_reset()
authorJohn Youn <John.Youn@synopsys.com>
Thu, 17 Dec 2015 19:15:35 +0000 (11:15 -0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 22 Dec 2015 17:54:45 +0000 (11:54 -0600)
commitb8ccc593eeeacde0e6794c4dcec0a57eba7356e6
treeb9b6fe7aa282f39c496dd920de63b0267a96826a
parent7d56cc2620f523eba7a831daa22186c8ae5bbdfe
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.

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>
drivers/usb/dwc2/core.c