[PATCH-for-9.2 v3 0/3] hw/ssi/pnv_spi: Remove PnvXferBuffer and get_seq_index()

Chalapathi V posted 3 patches 2 weeks, 3 days ago
MAINTAINERS              |   2 +
include/hw/ssi/pnv_spi.h |   3 +
hw/ssi/pnv_spi.c         | 228 +++++++++++++++------------------------
3 files changed, 89 insertions(+), 144 deletions(-)
[PATCH-for-9.2 v3 0/3] hw/ssi/pnv_spi: Remove PnvXferBuffer and get_seq_index()
Posted by Chalapathi V 2 weeks, 3 days ago
Hello,

v3:
1. Update the PowerNV maintainer section to include hw/ssi/pnv_spi*
2. Use of PnvXferBuffer results in a additonal process overhead due to
frequent dynamic allocations and hence use an existing Fifo8 buffer.
3. Use a local variable seq_index and use it with in while loop instead
of repeatedly calling get_seq_index() and make sure s->seq_op doesn't
overrun when seq_index is incremented.

Tested:
passed make check and make check-avocado

Supersedes: <20240807202804.56038-1-philmd@linaro.org>

Philippe Mathieu-Daudé (1):
  MAINTAINERS: Cover PowerPC SPI model in PowerNV section

Chalapathi V (2):
  hw/ssi/pnv_spi: Replace PnvXferBuffer with Fifo8 structure
  hw/ssi/pnv_spi: Use local var seq_index instead of get_seq_index().

 MAINTAINERS              |   2 +
 include/hw/ssi/pnv_spi.h |   3 +
 hw/ssi/pnv_spi.c         | 228 +++++++++++++++------------------------
 3 files changed, 89 insertions(+), 144 deletions(-)

-- 
2.39.5