]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: dsps: do not disable CPPI41 irq in driver teardown
authorBin Liu <b-liu@ti.com>
Mon, 17 Sep 2018 16:40:22 +0000 (11:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 10:40:14 +0000 (12:40 +0200)
commitf4ec0c1f5a588446e2f1175cc98021521898ce68
treef38a190d6801d357e393d866952ac56b7d2b4909
parent000c4f68e5c85848dfaa344de8c058722e62bc59
usb: musb: dsps: do not disable CPPI41 irq in driver teardown

TI AM335x CPPI 4.1 module uses a single register bit for CPPI interrupts
in both musb controllers. So disabling the CPPI irq in one musb driver
breaks the other musb module.

Since musb is already disabled before tearing down dma controller in
musb_remove(), it is safe to not disable CPPI irq in
musb_dma_controller_destroy().

Fixes: 38fd7e9b9429 ("usb: musb: dsps: Manage CPPI 4.1 DMA interrupt in DSPS")
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c