Commit fbf32752 authored by Sai Pavan Boddu's avatar Sai Pavan Boddu Committed by Peter Maydell
Browse files

xilinx_spips: Correct SNOOP_NONE state when flushing the txfifo



SNOOP_NONE state handle is moved above in the if ladder, as it's same
as SNOOP_STRIPPING during data cycles.

Signed-off-by: default avatarSai Pavan Boddu <saipava@xilinx.com>
Reviewed-by: default avatarFrancisco Iglesias <frasse.iglesias@gmail.com>
Message-id: 1524119244-1240-1-git-send-email-saipava@xilinx.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 6b892b2f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -616,7 +616,8 @@ static void xilinx_spips_flush_txfifo(XilinxSPIPS *s)
        if (fifo8_is_empty(&s->tx_fifo)) {
            xilinx_spips_update_ixr(s);
            return;
        } else if (s->snoop_state == SNOOP_STRIPING) {
        } else if (s->snoop_state == SNOOP_STRIPING ||
                   s->snoop_state == SNOOP_NONE) {
            for (i = 0; i < num_effective_busses(s); ++i) {
                tx_rx[i] = fifo8_pop(&s->tx_fifo);
            }