]> git.proxmox.com Git - qemu.git/commitdiff
pflash_cfi01: Suppress warning when Linux probes for AMD flash
authorStefan Weil <sw@weilnetz.de>
Sat, 24 Nov 2012 22:03:13 +0000 (23:03 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 1 Jan 2013 12:05:57 +0000 (13:05 +0100)
There are several ARM and MIPS boards which are manufactured with
either Intel (pflash_cfi01.c) or AMD (pflash_cfi02.c) flash memory.

The Linux kernel supports both and first probes for AMD flash which
resulted in one or two warnings from the Intel flash emulation:

pflash_write: Unimplemented flash cmd sequence (offset 0000000000000000, wcycle 0x0 cmd 0x0 value 0xf000f0)
pflash_write: Unimplemented flash cmd sequence (offset 0000000000000000, wcycle 0x0 cmd 0x0 value 0xf0)

These warnings confuse users, so suppress them.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/pflash_cfi01.c

index 95e07e7cdb09f8e4724a8f6f2ae92c210b6f2721..aadedefb253214bc9964cad2f27c1922202d009d 100644 (file)
@@ -319,6 +319,9 @@ static void pflash_write(pflash_t *pfl, hwaddr offset,
             DPRINTF("%s: Write to buffer\n", __func__);
             pfl->status |= 0x80; /* Ready! */
             break;
+        case 0xf0: /* Probe for AMD flash */
+            DPRINTF("%s: Probe for AMD flash\n", __func__);
+            goto reset_flash;
         case 0xff: /* Read array mode */
             DPRINTF("%s: Read array mode\n", __func__);
             goto reset_flash;