]> git.proxmox.com Git - qemu.git/commit - hw/pflash_cfi01.c
Reset CFI01 flash wcycle after erase confirm (Thomas Petazzoni).
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 3 Oct 2008 23:00:09 +0000 (23:00 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 3 Oct 2008 23:00:09 +0000 (23:00 +0000)
commit3656744cddce7937e54b78c5f9b5ba002d440105
tree04399c99fd981cf27dc9bb461d76b5e4be061790
parentf4b1a842d71ced24fb6b9145b9d1eadc48d64291
Reset CFI01 flash wcycle after erase confirm (Thomas Petazzoni).

pfl->wcycle was set to 1 when the erase confirm command was set, which
lead to the next command being misinterpreted by Qemu:

pflash_write: Unimplemented flash cmd sequence (offset 00000000,
wcycle 0x1 cmd 0x20 value 0x70)

This patch fixes this issue by resetting pfl->wcycle to 0 on erase
confirm so that the next command is considered as a new one.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5409 c046a42c-6fe2-441c-8c8c-71466251a162
hw/pflash_cfi01.c