projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77dbf71
)
usb: dwc2: host: disable interrupt during stop
author
Gregory Herrero
<
[email protected]
>
Tue, 22 Sep 2015 13:16:48 +0000
(15:16 +0200)
committer
Felipe Balbi
<
[email protected]
>
Thu, 1 Oct 2015 17:40:17 +0000
(12:40 -0500)
Disable host interrupts before synchronising dwc2 irq.
So that interrupts are not generated once controller is stopped.
Signed-off-by: Gregory Herrero <
[email protected]
>
Signed-off-by: Mian Yousaf Kaukab <
[email protected]
>
Tested-by: Robert Baldyga <
[email protected]
>
Tested-by: Dinh Nguyen <
[email protected]
>
Tested-by: John Youn <
[email protected]
>
Acked-by: John Youn <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
drivers/usb/dwc2/hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc2/hcd.c
b/drivers/usb/dwc2/hcd.c
index 257f9579705d2edee7668d79146e9b61fcda3fb6..de9d2e2bbf48d2ae239b435f10e3b8f530bc7183 100644
(file)
--- 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);