Message ID | 1310741906-1606-10-git-send-email-peter.maydell@linaro.org |
---|---|
State | Rejected |
Headers | show |
diff --git a/hw/onenand.c b/hw/onenand.c index 9f02736..0edcfe2 100644 --- a/hw/onenand.c +++ b/hw/onenand.c @@ -550,6 +550,13 @@ static void onenand_write(void *opaque, target_phys_addr_t addr, s->boot[0][2 << s->shift] = s->wpstatus & 0xff; break; + case 0x0000: + /* ignore zero writes without error messages, + * linux omap2/3 kernel will issue these upon + * powerdown/reset sequence. + */ + break; + default: fprintf(stderr, "%s: unknown OneNAND boot command %x\n", __FUNCTION__, value);