Skip to content

aspeed/smc: add fast read support under User command mode.

Cédric Le Goater qemu-arm qemu-devel 1 version Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4aspeed/smc: fix default read valuehw/ssi/aspeed_smc.c+1 -11 reply
2/4aspeed/smc: define registers for all possible CShw/ssi/aspeed_smc.c+1 -11 reply
3/4aspeed/smc: Add dummy data registerhw/ssi/aspeed_smc.c+6 -32 replies
4/4aspeed/smc: snoop SPI transfers to fake dummy cycleshw/ssi/aspeed_smc.c include/hw/ssi/aspeed_smc.h+115 -30 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéAlistair FrancisFrancisco IglesiasJoel Stanley
1/4R-b
2/4R-b
3/4R-b R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [Qemu-arm] [PATCH 0/4] aspeed/smc: add fast read support under User command mode.

Hello,

When in the User command mode, the Aspeed SMC controller driver performs the dummy cycles of a fast read command using byte transfers, that is ony byte for eight cycles. But, the QEMU m25p80 models one dummy cycle with one byte transfer.

To restore the correct number of cycles, this series adds a function snooping the SPI transfers to catch commands requiring dummy cycles and replaces them with byte transfers compatible with the m25p80 model.

Thanks,

C.

Cédric Le Goater (4):
aspeed/smc: fix default read value aspeed/smc: define registers for all possible CS aspeed/smc: Add dummy data register aspeed/smc: snoop transfers to fake dummy cycles

 include/hw/ssi/aspeed_smc.h |   3 +
 hw/ssi/aspeed_smc.c         | 128 +++++++++++++++++++++++++++++++++---
 2 files changed, 123 insertions(+), 8 deletions(-)
Signature · 1 line
2.20.1