Commit 714f3dfd8d for qemu.org

commit 714f3dfd8dd316413bc7349ec6c016ea40acf08c
Author: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Date:   Tue Nov 24 13:56:25 2026 +0100

    hw/block/pflash_cfi02: Return to read-array mode on reset

    Reset left the ROM device in MMIO mode when reset in a command
    sequence, unlike pflash_cfi01. Use the read-array transition.

    Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Message-ID: <20261124181209.71534-1-philmd@oss.qualcomm.com>

diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c
index 4f72c438c0..8d130e14d1 100644
--- a/hw/block/pflash_cfi02.c
+++ b/hw/block/pflash_cfi02.c
@@ -958,7 +958,7 @@ static void pflash_cfi02_reset(DeviceState *dev)
 {
     PFlashCFI02 *pfl = PFLASH_CFI02(dev);

-    pflash_reset_state_machine(pfl);
+    pflash_mode_read_array(pfl);
 }

 static const Property pflash_cfi02_properties[] = {