OSDN Git Service

usb: chipidea: Prevent unbalanced IRQ disable
authorLoic Poulain <loic.poulain@linaro.org>
Tue, 4 Sep 2018 15:18:57 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:36 +0000 (11:08 -0800)
commiteb4a3faebfd113482ea3c266f7d30e13f7d56848
treed89297e81872c67d32b07299f02cbd2d1d48d047
parent451738900f881a0b785ac905847552da760ab521
usb: chipidea: Prevent unbalanced IRQ disable

[ Upstream commit 8b97d73c4d72a2abf58f8e49062a7ee1e5f1334e ]

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: be6b0c1bd0be ("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>
drivers/usb/chipidea/otg.h