From: Dante <dantesu@faraday-tech.com>
To: qemu-devel@nongnu.org
Cc: balrog@zabor.org, Dante <dantesu@faraday-tech.com>
Subject: [Qemu-devel] [PATCH 2/2] hw/nand.c: bug fix to erase operation
Date: Fri, 18 Jan 2013 14:20:20 +0800 [thread overview]
Message-ID: <1358490020-18061-2-git-send-email-dantesu@faraday-tech.com> (raw)
In-Reply-To: <1358490020-18061-1-git-send-email-dantesu@faraday-tech.com>
The s->addr is supposed to be reset along with the s->addrlen,
or it might be contains the previous address at last address cycle,
and causes problem to nand erase operation.
Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
---
hw/nand.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/nand.c b/hw/nand.c
index 76479ed..b70a371 100644
--- a/hw/nand.c
+++ b/hw/nand.c
@@ -510,6 +510,7 @@ void nand_setio(DeviceState *dev, uint32_t value)
nand_command(s);
if (s->cmd != NAND_CMD_RANDOMREAD2) {
+ s->addr = 0;
s->addrlen = 0;
}
}
--
1.7.9.5
********************* Confidentiality Notice ************************
This electronic message and any attachments may contain
confidential and legally privileged information or
information which is otherwise protected from disclosure.
If you are not the intended recipient,please do not disclose
the contents, either in whole or in part, to anyone,and
immediately delete the message and any attachments from
your computer system and destroy all hard copies.
Thank you for your cooperation.
***********************************************************************
prev parent reply other threads:[~2013-01-18 6:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 6:20 [Qemu-devel] [PATCH 1/2] hw/nand.c: bug fix to BUSY/READY status bit Dante
2013-01-18 6:20 ` Dante [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1358490020-18061-2-git-send-email-dantesu@faraday-tech.com \
--to=dantesu@faraday-tech.com \
--cc=balrog@zabor.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).