]> git.ipfire.org Git - thirdparty/qemu.git/commit
pflash_cfi01: fix vendor specific extended query
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 3 Sep 2012 20:47:03 +0000 (22:47 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:19 +0000 (21:44 -0500)
commit68958c31b5dcacc7c8529cd47be9979ed853a324
tree554bf24102fe305ca28fe2b324c766f1310ba2c5
parent584717a39a2ad3ee94629599f7a181900945923e
pflash_cfi01: fix vendor specific extended query

pflash_cfi01 announces a version number of 1.1, which implies
"Protection Register Information" and "Burst Read information"
sections, which are not provided.

Decrease the version number to 1.0 so that only the "Protection
Register Information" section is needed.

Set the number of protection fields (0x3f) to 0x01, as 0x00 means 256
protections field, which makes the CFI table bigger than the current
implementation, causing some kernels to fail to read it.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 262e1eaafabf32d33a9fa0b03b3c8ea426c5ae1b)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/pflash_cfi01.c