Commit 77330682 authored by Minas Harutyunyan's avatar Minas Harutyunyan Committed by Greg Kroah-Hartman

usb: dwc2: Fix shutdown callback in platform

commit 4fdf228c upstream.

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: a40a0031 ("usb: dwc2: add shutdown callback to platform variant")
Tested-by: default avatarFrank Mori Hess <fmh6jj@gmail.com>
Reviewed-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Reviewed-by: default avatarDoug Anderson <dianders@chromium.org>
Reviewed-by: default avatarFrank Mori Hess <fmh6jj@gmail.com>
Signed-off-by: default avatarMinas Harutyunyan <hminas@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 70a6e4e9
...@@ -349,7 +349,8 @@ static void dwc2_driver_shutdown(struct platform_device *dev) ...@@ -349,7 +349,8 @@ static void dwc2_driver_shutdown(struct platform_device *dev)
{ {
struct dwc2_hsotg *hsotg = platform_get_drvdata(dev); struct dwc2_hsotg *hsotg = platform_get_drvdata(dev);
disable_irq(hsotg->irq); dwc2_disable_global_interrupts(hsotg);
synchronize_irq(hsotg->irq);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment