xilinx_spips: Correct SNOOP_NONE state when flushing the txfifo
PATCH v3 1/1 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.
---
Changes for V2:
Fixed commit message
Reordered to code, to avoid code duplication.
Changes for V3:
Dropped the cover letter, as its a minor fix now Fixed commit message by explaining only what's fixed removed the dummy_byte decrement changes
hw/ssi/xilinx_spips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
hw/ssi/xilinx_spips.c +2 -1
@@ -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); }
Signature · 1 line
2.7.4
Quoted 5 lines · Sai Pavan Boddu
SNOOP_NONEstate handle is moved above in the if ladder, as it's same asSNOOP_STRIPPINGduring data cycles.Signed-off-by Sai Pavan Boddu <[email protected]>
Quoted 31 lines
---
Changes for V2:
Fixed commit message
Reordered to code, to avoid code duplication.
Changes for V3:
Dropped the cover letter, as its a minor fix now Fixed commit message by explaining only what's fixed removed thedummy_bytedecrement changeshw/ssi/xilinx_spips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)hw/ssi/xilinx_spips.c +2
-2@@ -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); } --2.7.4
Peter Maydell
AppliedQuoted 5 lines · francisco iglesias
Quoted 1 line · Sai Pavan Boddu
Quoted 9 lines
Quoted 4 lines
SNOOP_NONEstate handle is moved above in the if ladder, as it's same asSNOOP_STRIPPINGduring data cycles.Signed-off-by Sai Pavan Boddu <[email protected]>Reviewed-by Francisco Iglesias <[email protected]>Quoted 1 line
Applied to target-arm.next, thanks.
-- PMM