[PATCH 0/2] m25p80: Clear write enable latch (WEL) at the end of SPI operations

Anirudh Srinivasan posted 2 patches 1 week, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261110-m25p80._5Fwrite._5Fenable._5Ffix-v1-0-3a2abc0072b0@oss.tenstorrent.com
Maintainers: Alistair Francis <alistair@alistair23.me>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, "Cédric Le Goater" <clg@kaod.org>, Peter Maydell <peter.maydell@linaro.org>, Jamin Lin <jamin_lin@aspeedtech.com>, Kane Chen <kane_chen@aspeedtech.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
hw/block/m25p80.c              |  6 ++++++
tests/qtest/aspeed-smc-utils.c | 24 +++++++++++++++++++-----
2 files changed, 25 insertions(+), 5 deletions(-)
[PATCH 0/2] m25p80: Clear write enable latch (WEL) at the end of SPI operations
Posted by Anirudh Srinivasan 1 week, 3 days ago
The m25p80 model in qemu doesn't deassert the write enable latch (WEL)
at the end page program and erase operations. This series contains a fix
for that, to match real hardware behaviour.

This series also has a fix to the aspeed_smc tests. These tests exercise
the m25p80 flash model by sending page program (PP) ops, but do not send
write enable (WREN) before each PP op as the spec requires. The test is
updated to do so.

Signed-off-by: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>
---
Anirudh Srinivasan (2):
      test/qtest/aspeed_smc-test: Send write enable before each page program command
      m25p80: Clear write_enable after page program and flash erase operation

 hw/block/m25p80.c              |  6 ++++++
 tests/qtest/aspeed-smc-utils.c | 24 +++++++++++++++++++-----
 2 files changed, 25 insertions(+), 5 deletions(-)
---
base-commit: 73294d096cc591e122fde9e63db4739de6d84f2b
change-id: 20261110-m25p80_write_enable_fix-d7f95301723e

Best regards,
--  
Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>