UPSTREAM: usb: dwc2: Remove redundant reset in probe
authorJohn Youn <John.Youn@synopsys.com>
Thu, 17 Dec 2015 19:18:27 +0000 (11:18 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:47:55 +0000 (18:47 +0800)
Reset already happens before this so just force the dr_mode.

Change-Id: I308ef9ea795ba654aca98af67ee1ecaba415397f
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 25362d318371e1e271dda24995ceabb8457b3b7c)

drivers/usb/dwc2/platform.c

index 196ffa7656b6d54ff07e0274ebb1d8683a9b941a..b4447f4d970f88f58db22d988ce28681a199601f 100644 (file)
@@ -529,7 +529,7 @@ static int dwc2_driver_probe(struct platform_device *dev)
        /* Validate parameter values */
        dwc2_set_parameters(hsotg, params);
 
-       dwc2_core_reset_and_force_dr_mode(hsotg);
+       dwc2_force_dr_mode(hsotg);
 
        if (hsotg->dr_mode != USB_DR_MODE_HOST) {
                retval = dwc2_gadget_init(hsotg, irq);