diff options
author | Juha Riihimäki <juha.riihimaki@nokia.com> | 2012-07-04 11:18:42 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-07-25 13:32:56 +0100 |
commit | 5842b5856b9aa88cef004f4664624f7dd4240791 (patch) | |
tree | 5e61116e8d88867c0f8e0d25f777c3ac35133298 | |
parent | d19d2dddb30950b4cb41984b4d0d03c5223cf6cc (diff) | |
download | qemu-arm-5842b5856b9aa88cef004f4664624f7dd4240791.tar.gz |
fix omap_spi rxs flag status update
Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
-rw-r--r-- | hw/omap_spi.c | 5 |
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 */ |