aboutsummaryrefslogtreecommitdiff
path: root/hw/omap_spi.c
diff options
context:
space:
mode:
authorJuha Riihimäki <juha.riihimaki@nokia.com>2012-07-04 11:18:42 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-07-25 13:32:56 +0100
commit5842b5856b9aa88cef004f4664624f7dd4240791 (patch)
tree5e61116e8d88867c0f8e0d25f777c3ac35133298 /hw/omap_spi.c
parentd19d2dddb30950b4cb41984b4d0d03c5223cf6cc (diff)
fix omap_spi rxs flag status update
Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
Diffstat (limited to 'hw/omap_spi.c')
-rw-r--r--hw/omap_spi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/omap_spi.c b/hw/omap_spi.c
index bdfc659961..df250027fe 100644
--- a/hw/omap_spi.c
+++ b/hw/omap_spi.c
@@ -229,8 +229,11 @@ static void omap_mcspi_transfer_run(OMAPSPIBusState *s, int chnum)
ch->tx = 0;
ch->status |= 1 << 2; /* EOT */
ch->status |= 1 << 1; /* TXS */
- if (trm != 2)
+ if (trm != 2) {
ch->status |= 1; /* RXS */
+ } else {
+ ch->status &= ~1; /* RXS */
+ }
intr_update:
if ((ch->status & 1) && trm != 2 && /* RXS */