1 From 9864f39695aefe0831b3c6e86c0dff30489ad580 Mon Sep 17 00:00:00 2001
2 From: Matthew McClintock <mmcclint@codeaurora.org>
3 Date: Thu, 10 Mar 2016 16:48:27 -0600
4 Subject: [PATCH 08/69] spi: qup: don't re-read opflags to see if transaction
7 For reads, we will get another interrupt so we need to handle things
8 then. For writes, we can finish up now.
10 Signed-off-by: Matthew McClintock <mmcclint@codeaurora.org>
12 drivers/spi/spi-qup.c | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
15 --- a/drivers/spi/spi-qup.c
16 +++ b/drivers/spi/spi-qup.c
17 @@ -567,7 +567,8 @@ static irqreturn_t spi_qup_qup_irq(int i
20 /* re-read opflags as flags may have changed due to actions above */
21 - opflags = readl_relaxed(controller->base + QUP_OPERATIONAL);
22 + if (opflags & QUP_OP_OUT_SERVICE_FLAG)
23 + opflags = readl_relaxed(controller->base + QUP_OPERATIONAL);
25 if ((controller->rx_bytes == xfer->len &&
26 (opflags & QUP_OP_MAX_INPUT_DONE_FLAG)) || error)