mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
8072264b96
Refresh patches for all targets that support kernel 4.4. Compile-tested on all targets that use kernel 4.4 and aren't marked broken. Runtime-tested on ar71xx, octeon and x86/64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
28 lines
1020 B
Diff
28 lines
1020 B
Diff
From f57ff801665b868d8607c9e872466b54982564bc Mon Sep 17 00:00:00 2001
|
|
From: Matthew McClintock <mmcclint@codeaurora.org>
|
|
Date: Thu, 10 Mar 2016 16:48:27 -0600
|
|
Subject: [PATCH] spi: qup: don't re-read opflags to see if transaction is done
|
|
for reads
|
|
|
|
For reads, we will get another interrupt so we need to handle things
|
|
then. For writes, we can finish up now.
|
|
|
|
Change-Id: I4fa95ae7bb9d78f8ba54c613b981b37d4ea81d7e
|
|
Signed-off-by: Matthew McClintock <mmcclint@codeaurora.org>
|
|
---
|
|
drivers/spi/spi-qup.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/spi/spi-qup.c
|
|
+++ b/drivers/spi/spi-qup.c
|
|
@@ -569,7 +569,8 @@ static irqreturn_t spi_qup_qup_irq(int i
|
|
}
|
|
|
|
/* re-read opflags as flags may have changed due to actions above */
|
|
- opflags = readl_relaxed(controller->base + QUP_OPERATIONAL);
|
|
+ if (opflags & QUP_OP_OUT_SERVICE_FLAG)
|
|
+ opflags = readl_relaxed(controller->base + QUP_OPERATIONAL);
|
|
|
|
if ((controller->rx_bytes == xfer->len &&
|
|
(opflags & QUP_OP_MAX_INPUT_DONE_FLAG)) || error)
|