linux-stable/drivers/usb/chipidea
Loic Poulain ae893bc61c usb: chipidea: Prevent unbalanced IRQ disable
[ Upstream commit 8b97d73c4d ]

The ChipIdea IRQ is disabled before scheduling the otg work and
re-enabled on otg work completion. However if the job is already
scheduled we have to undo the effect of disable_irq int order to
balance the IRQ disable-depth value.

Fixes: be6b0c1bd0 ("usb: chipidea: using one inline function to cover queue work operations")
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-13 11:16:53 -08:00
..
Kconfig usb: chipidea: Kconfig: improve Kconfig help text 2016-06-21 10:48:30 +08:00
Makefile
bits.h
ci.h usb: chipidea: Only read/write OTGSC from one place 2017-05-14 14:00:18 +02:00
ci_hdrc_imx.c usb: chipidea: imx: set over current polarity per dts setting 2016-09-14 10:58:13 +08:00
ci_hdrc_imx.h usb: chipidea: imx: set over current polarity per dts setting 2016-09-14 10:58:13 +08:00
ci_hdrc_msm.c usb: chipidea: msm: Rely on core to override AHBBURST 2017-04-12 12:41:19 +02:00
ci_hdrc_pci.c
ci_hdrc_usb2.c
ci_hdrc_zevio.c
core.c usb: chipidea: properly handle host or gadget initialization failure 2018-04-13 19:47:59 +02:00
debug.c usb: chipidea: debug: check before accessing ci_role 2017-06-14 15:05:59 +02:00
host.c usb: chipidea: host: fix NULL ptr dereference during shutdown 2016-10-25 16:14:32 +08:00
host.h
otg.c usb: chipidea: vbus event may exist before starting gadget 2017-10-08 10:26:07 +02:00
otg.h usb: chipidea: Prevent unbalanced IRQ disable 2018-11-13 11:16:53 -08:00
otg_fsm.c usb: chipidea: otg: add A idle to B disconnect timer 2016-03-04 15:14:38 +02:00
otg_fsm.h usb: chipidea: otg: add A idle to B disconnect timer 2016-03-04 15:14:38 +02:00
udc.c usb: chipidea: udc: fix NULL pointer dereference if udc_start failed 2017-06-14 15:05:58 +02:00
udc.h
usbmisc_imx.c usb: chipidea: imx: set over current polarity per dts setting 2016-09-14 10:58:13 +08:00