From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhjqw-0002qZ-6C for qemu-devel@nongnu.org; Fri, 15 Jul 2011 10:58:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qhjqp-00037T-1q for qemu-devel@nongnu.org; Fri, 15 Jul 2011 10:58:52 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:59255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhjqo-00033y-BF for qemu-devel@nongnu.org; Fri, 15 Jul 2011 10:58:46 -0400 From: Peter Maydell Date: Fri, 15 Jul 2011 15:58:23 +0100 Message-Id: <1310741906-1606-10-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1310741906-1606-1-git-send-email-peter.maydell@linaro.org> References: <1310741906-1606-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 09/12] onenand: Ignore zero writes to boot command space List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , =?UTF-8?q?Juha=20Riihim=C3=A4ki?= , Markus Armbruster , patches@linaro.org From: Juha Riihimäki Ignore zero writes to the boot command space; Linux will issue these in the powerdown/reset sequence. Signed-off-by: Juha Riihimäki [Riku Voipio: Fixes and restructuring patchset] Signed-off-by: Riku Voipio [Peter Maydell: More fixes and cleanups for upstream submission] Signed-off-by: Peter Maydell --- hw/onenand.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) 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); -- 1.7.1