Hi, This series fixes erase alignment, write-enable latch handling, block protection on erase, and page-program address wrapping in the M25P80 flash model.
Patch 1 aligns erase addresses to the containing erase unit and checks the device bounds. Patch 2 clears the write-enable latch after WRSR2. Patch 3 checks block protection before erase operations and updates the ASPEED SMC tests to clear protection before their setup erases. Patch 4 wraps page-program addresses within the page and corrects the page sizes of affected devices. Comments and suggestions are welcome. Thanks, Yifan Chao Liu (4): hw/block/m25p80: fix erase past the end of the flash device hw/block/m25p80: fix write enable latch after WRSR2 hw/block/m25p80: fix block protection on erase hw/block/m25p80: fix page program address wrap hw/block/m25p80.c | 118 +++++++++++++++++++++++++-------- tests/qtest/aspeed-smc-utils.c | 19 ++++++ 2 files changed, 109 insertions(+), 28 deletions(-) base-commit: 49559567804523cb28cad002aa8e97f444e23ad7 -- 2.53.0
