hw/block/pflash_cfi02: Fix CFI in autoselect mode
commit46fb7809b5520e2cb77bdc86270b0c393e4b1210
authorStephen Checkoway <stephen.checkoway@oberlin.edu>
Fri, 26 Apr 2019 16:26:20 +0000 (26 12:26 -0400)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 2 Jul 2019 00:32:39 +0000 (2 02:32 +0200)
tree656050926d78f466393fa5793abcfc93fb4fa532
parent8a508e7064bbe7d434a93f3284e6d93881c68a44
hw/block/pflash_cfi02: Fix CFI in autoselect mode

After a flash device enters CFI mode from autoselect mode, the reset
command returns the device to autoselect mode. An additional reset
command is necessary to return to read array mode.

Signed-off-by: Stephen Checkoway <stephen.checkoway@oberlin.edu>
Message-Id: <20190426162624.55977-7-stephen.checkoway@oberlin.edu>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/block/pflash_cfi02.c
tests/pflash-cfi02-test.c