]> git.proxmox.com Git - mirror_qemu.git/commit
hw/block/pflash_cfi02: Fix reset command not ignored during erase
authorStephen Checkoway <stephen.checkoway@oberlin.edu>
Fri, 26 Apr 2019 16:26:21 +0000 (12:26 -0400)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 2 Jul 2019 00:34:51 +0000 (02:34 +0200)
commita97910423975b9fee1dbcdc1a2488804d4092c36
tree7caa487e961ba7b76df451c0a67462bc437a2861
parent46fb7809b5520e2cb77bdc86270b0c393e4b1210
hw/block/pflash_cfi02: Fix reset command not ignored during erase

When the flash device is performing a chip erase, all commands are
ignored. When it is performing a sector erase, only the erase suspend
command is valid, which is currently not supported.

In particular, the reset command should not cause the device to reset to
read array mode while programming is on going.

Signed-off-by: Stephen Checkoway <stephen.checkoway@oberlin.edu>
Message-Id: <20190426162624.55977-8-stephen.checkoway@oberlin.edu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/block/pflash_cfi02.c