]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Move reset into dwc2_get_hwparams()
authorJohn Youn <John.Youn@synopsys.com>
Thu, 17 Dec 2015 19:16:58 +0000 (11:16 -0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 22 Dec 2015 17:58:34 +0000 (11:58 -0600)
commitd8d51ab2007a5e19f844fba54c0991b677048d9e
tree71d324a632fa9d1af12ce8a3a73c0a20d8ef676c
parentd65d8b5edbbb2320ecd50cf0639c1c67227fc43b
usb: dwc2: Move reset into dwc2_get_hwparams()

The reset is required to get reset values of the hardware parameters but
the force mode is not. Move the base reset into dwc2_get_hwparams() and
do the reset and force mode afterwards.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.c
drivers/usb/dwc2/platform.c