]> Git Repo - qemu.git/commit
hw/block/pflash_cfi02: Implement erase suspend/resume
authorStephen Checkoway <[email protected]>
Fri, 26 Apr 2019 16:26:23 +0000 (12:26 -0400)
committerPhilippe Mathieu-Daudé <[email protected]>
Tue, 2 Jul 2019 00:34:55 +0000 (02:34 +0200)
commitddb6f2254871c7c686561c4b41d52e2f0413f9a1
tree29620160fef0897eff2cbeb656d88e199380d12c
parenta50547aca54c0e55122c32c077cab747147a6b30
hw/block/pflash_cfi02: Implement erase suspend/resume

During a sector erase (but not a chip erase), the embeded erase program
can be suspended. Once suspended, the sectors not selected for erasure
may be read and programmed. Autoselect mode is allowed during erase
suspend mode. Presumably, CFI queries are similarly allowed so this
commit allows them as well.

Since guest firmware can use status bits DQ7, DQ6, DQ3, and DQ2 to
determine the current state of sector erasure, these bits are properly
implemented.

Signed-off-by: Stephen Checkoway <[email protected]>
Message-Id: <20190426162624[email protected]>
Acked-by: Thomas Huth <[email protected]>
Acked-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
[PMD: Rebased]
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
hw/block/pflash_cfi02.c
tests/pflash-cfi02-test.c
This page took 0.024439 seconds and 4 git commands to generate.