]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: usb-dmac: check CHCR.DE bit in usb_dmac_isr_channel()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 4 Aug 2016 10:59:41 +0000 (19:59 +0900)
committerVinod Koul <vinod.koul@intel.com>
Mon, 8 Aug 2016 08:12:06 +0000 (13:42 +0530)
commit4ca97a5a8ceab16e9ec3c69d86521272c391826d
treea6295aa86917d7a92f066098183b66f8b809c43b
parent1372dac0367f9e37512ea4720cf3886bcb42562d
dmaengine: usb-dmac: check CHCR.DE bit in usb_dmac_isr_channel()

The USB-DMAC's interruption happens even if the CHCR.DE is not set to 1
because CHCR.NULLE is set to 1. So, this driver should call
usb_dmac_isr_transfer_end() if the DE bit is set to 1 only. Otherwise,
the desc is possible to be NULL in the usb_dmac_isr_transfer_end().

Fixes: 64993e5d8157 ("dmaengine: usb-dmac: Add Renesas USB DMA Controller (USB-DMAC) driver)
Cc: <stable@vger.kernel.org> # v4.1+
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/usb-dmac.c