]> git.itanic.dy.fi Git - linux-stable/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)
commit263b7fb557f797d9d4d1dcf93fb6bb2efc3f1d46
tree71d324a632fa9d1af12ce8a3a73c0a20d8ef676c
parent1696d5ab99ef885ae62da5ad58f9eff16da7ff78
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