Linux Kernels

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

This change “usb: dwc2: host: avoid resetting lx_state to L3 during disconnect” (commit 9afaf75) in Linux kernel is authored by Gregory Herrero <gregory.herrero [at] intel.com> on Tue Sep 22 15:16:42 2015 +0200.

Description of "usb: dwc2: host: avoid resetting lx_state to L3 during disconnect"

The change “usb: dwc2: host: avoid resetting lx_state to L3 during disconnect” introduces changes as follows.

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: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: John Youn <johnyoun@synopsys.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

Linux kernel releases containing commit 9afaf75

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "usb: dwc2: host: avoid resetting lx_state to L3 during disconnect"

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/usb/dwc2/core_intr.c | 3 ---
 1 file changed, 3 deletions(-)
 
diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c
index a6b16139850d..3275310a8fb3 100644
--- a/drivers/usb/dwc2/core_intr.c
+++ b/drivers/usb/dwc2/core_intr.c
@@ -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);
 }
 

The commit for this change in Linux stable tree is 9afaf75 (patch).

Last modified: 2020/01/11 10:05