Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25362d31 authored by John Youn's avatar John Youn Committed by Felipe Balbi
Browse files

usb: dwc2: Remove redundant reset in probe



Reset already happens before this so just force the dr_mode.

Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 97e46388
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -520,7 +520,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);