]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: jz4740: Prevent lockup when CONFIG_SMP is set
authorPaul Cercueil <paul@crapouillou.net>
Mon, 25 May 2020 02:50:48 +0000 (21:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 May 2020 11:36:30 +0000 (13:36 +0200)
commit47d929f28c4671bac8200e9c2a23993527bdc9d8
treea1bcef332ee55714b68f6b6f2f42671447646530
parentbb23cc37cbc4d102aa372154c9c560bb5c13eb47
usb: musb: jz4740: Prevent lockup when CONFIG_SMP is set

The function dma_controller_irq() locks up the exact same spinlock we
locked before calling it, which obviously resulted in a deadlock when
CONFIG_SMP was enabled. This flew under the radar as none of the boards
supported by this driver needs SMP.

Fixes: 738e02ae25bd ("usb: musb: jz4740: Add support for DMA")
Cc: stable@vger.kernel.org
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200525025049.3400-6-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/jz4740.c