]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9ed31056b0927c908e211c1f1075425e548149c
treeb9b6fe7aa282f39c496dd920de63b0267a96826a
parent2fae9a8ea0ec6e1a4b3784bf1128a9253b383d21
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