summaryrefslogtreecommitdiff
path: root/drivers/usb/chipidea/ci_hdrc_msm.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-10-21 10:34:47 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-22 11:14:12 +0200
commit9aaa81c3366e8393a62374e3a1c67c69edc07b8a (patch)
treea36601e13a9565509c0dd1edaec5108c0f1e0924 /drivers/usb/chipidea/ci_hdrc_msm.c
parent21b5fcdccb32ff09b6b63d4a83c037150665a83f (diff)
downloadlinux-9aaa81c3366e8393a62374e3a1c67c69edc07b8a.tar.gz
USB: chipidea: fix interrupt deadlock
Chipidea core was calling the interrupt handler from non-IRQ context with interrupts enabled, something which can lead to a deadlock if there's an actual interrupt trying to take a lock that's already held (e.g. the controller lock in udc_irq()). Add a wrapper that can be used to fake interrupts instead of calling the handler directly. Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect") Fixes: 876d4e1e8298 ("usb: chipidea: core: add wakeup support for extcon") Cc: Peter Chen <peter.chen@kernel.org> Cc: stable@vger.kernel.org # 4.4 Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20211021083447.20078-1-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/ci_hdrc_msm.c')
0 files changed, 0 insertions, 0 deletions