All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: dwc2: Fix shutdown callback in platform
@ 2020-05-29 11:56 Minas Harutyunyan
  2020-05-29 14:49 ` Doug Anderson
  0 siblings, 1 reply; 12+ messages in thread
From: Minas Harutyunyan @ 2020-05-29 11:56 UTC (permalink / raw)
  To: John Youn, Felipe Balbi, Greg Kroah-Hartman, Minas Harutyunyan,
	linux-usb, Felipe Balbi, Heiko Stuebner, Douglas Anderson
  Cc: stable, Frank Mori Hess

To avoid lot of interrupts from dwc2 core, which can be asserted in
specific conditions need to disable interrupts on HW level instead of
disable IRQs on Kernel level, because of IRQ can be shared between
drivers.

Cc: stable@vger.kernel.org
Fixes: a40a00318c7fc ("usb: dwc2: add shutdown callback to platform variant")
Tested-by: Frank Mori Hess <fmh6jj@gmail.com>
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
---
 drivers/usb/dwc2/platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index e571c8ae65ec..ada5b66b948e 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -342,7 +342,7 @@ static void dwc2_driver_shutdown(struct platform_device *dev)
 {
 	struct dwc2_hsotg *hsotg = platform_get_drvdata(dev);
 
-	disable_irq(hsotg->irq);
+	dwc2_disable_global_interrupts(hsotg);
 }
 
 /**
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-05-29 20:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29 11:56 [PATCH] usb: dwc2: Fix shutdown callback in platform Minas Harutyunyan
2020-05-29 14:49 ` Doug Anderson
     [not found]   ` <0f6b1580-41d8-b7e7-206b-64cda87abfd5@synopsys.com>
2020-05-29 16:37     ` Doug Anderson
2020-05-29 17:44       ` Frank Mori Hess
2020-05-29 17:52         ` Doug Anderson
2020-05-29 18:21           ` Frank Mori Hess
2020-05-29 18:45             ` Doug Anderson
2020-05-29 19:00               ` Alan Stern
2020-05-29 19:07                 ` Doug Anderson
     [not found]                   ` <52f936c5-7f3f-5da0-33b8-3e6d4a4008d1@synopsys.com>
2020-05-29 19:45                     ` Frank Mori Hess
2020-05-29 19:46                       ` Doug Anderson
     [not found]                         ` <f68ce0c2-7014-64ff-73e3-94d93897e3b2@synopsys.com>
2020-05-29 20:29                           ` Frank Mori Hess

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.