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

Commit 9afaf755 authored by Gregory Herrero's avatar Gregory Herrero Committed by Felipe Balbi
Browse files

usb: dwc2: host: avoid resetting lx_state to L3 during disconnect



When a device is disconnected, lx_state must not be changed since the
device may be disconnected whereas controller is still powered.

Signed-off-by: default avatarGregory Herrero <gregory.herrero@intel.com>
Signed-off-by: default avatarMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tested-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Tested-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: default avatarJohn Youn <johnyoun@synopsys.com>
Acked-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 31927b6b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -387,9 +387,6 @@ static void dwc2_handle_disconnect_intr(struct dwc2_hsotg *hsotg)
	if (hsotg->op_state == OTG_STATE_A_HOST)
		dwc2_hcd_disconnect(hsotg);

	/* Change to L3 (OFF) state */
	hsotg->lx_state = DWC2_L3;

	dwc2_writel(GINTSTS_DISCONNINT, hsotg->regs + GINTSTS);
}