提交 40a2945b 编写于 作者: M Mike Frysinger 提交者: Linus Torvalds

Blackfin SPI Driver: do not check for SPI errors if DMA itself did not flag any

We only need to check SPI error when DMA failes, cause that is the DMA IRQ
handling routine.
Signed-off-by: NMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 d24bd1d0
...@@ -587,7 +587,7 @@ static irqreturn_t dma_irq_handler(int irq, void *dev_id) ...@@ -587,7 +587,7 @@ static irqreturn_t dma_irq_handler(int irq, void *dev_id)
while (!(read_STAT(drv_data) & SPIF)) while (!(read_STAT(drv_data) & SPIF))
cpu_relax(); cpu_relax();
if (spistat & RBSY) { if ((dmastat & DMA_ERR) && (spistat & RBSY)) {
msg->state = ERROR_STATE; msg->state = ERROR_STATE;
dev_err(&drv_data->pdev->dev, "dma receive: fifo/buffer overflow\n"); dev_err(&drv_data->pdev->dev, "dma receive: fifo/buffer overflow\n");
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册