Linux Kernels

usb: dwc2: host: disable interrupt during stop

This change “usb: dwc2: host: disable interrupt during stop” (commit 5bbf6ce) in Linux kernel is authored by Gregory Herrero <gregory.herrero [at] intel.com> on Tue Sep 22 15:16:48 2015 +0200.

Description of "usb: dwc2: host: disable interrupt during stop"

The change “usb: dwc2: host: disable interrupt during stop” introduces changes as follows.

usb: dwc2: host: disable interrupt during stop

Disable host interrupts before synchronising dwc2 irq.
So that interrupts are not generated once controller is stopped.

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 5bbf6ce

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "usb: dwc2: host: disable interrupt during stop"

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

 drivers/usb/dwc2/hcd.c | 3 +++
 1 file changed, 3 insertions(+)
 
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index 257f9579705d..de9d2e2bbf48 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -2350,6 +2350,9 @@ static void _dwc2_hcd_stop(struct usb_hcd *hcd)
 	struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd);
 	unsigned long flags;
 
+	/* Turn off all host-specific interrupts */
+	dwc2_disable_host_interrupts(hsotg);
+
 	/* Wait for interrupt processing to finish */
 	synchronize_irq(hcd->irq);
 

The commit for this change in Linux stable tree is 5bbf6ce (patch).

Last modified: 2020/01/11 09:44