dmaengine: hsu: don't check direction of timeouted channel
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Mar 2016 12:26:35 +0000 (14:26 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 4 Apr 2016 16:42:00 +0000 (09:42 -0700)
The timeout capability is only available on the so called DMA write channels,
i.e. associated with UART Rx FIFO. It means we don't need to check the
direction of the channel to handle timeouts.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/hsu/hsu.c

index 6fce5ed2fc40ef74106856a54c55df691199a7d9..1817b7bc9576ed85b26b0b796d28c4adf53b1c35 100644 (file)
@@ -160,7 +160,7 @@ irqreturn_t hsu_dma_irq(struct hsu_dma_chip *chip, unsigned short nr)
                return IRQ_NONE;
 
        /* Timeout IRQ, need wait some time, see Errata 2 */
-       if (hsuc->direction == DMA_DEV_TO_MEM && (sr & HSU_CH_SR_DESCTO_ANY))
+       if (sr & HSU_CH_SR_DESCTO_ANY)
                udelay(2);
 
        sr &= ~HSU_CH_SR_DESCTO_ANY;