From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>,
john.williams@xilinx.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v1 7/7] nand: Reset addressing after READSTATUS.
Date: Fri, 19 Oct 2012 14:18:18 +0200 [thread overview]
Message-ID: <20121019121817.GC16244@zapo> (raw)
In-Reply-To: <CAFEAcA__ayXvm7V3hy-aW_gWbGAeu03CrZRRrS8ts74jsiyNjA@mail.gmail.com>
On Fri, Oct 19, 2012 at 12:59:49PM +0100, Peter Maydell wrote:
> On 19 October 2012 07:40, Peter Crosthwaite
> <peter.crosthwaite@xilinx.com> wrote:
> > From: Edgar E. Iglesias <edgar.iglesias@gmail.com>
> >
> > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
> > ---
> >
> > hw/nand.c | 6 ++++++
> > 1 files changed, 6 insertions(+), 0 deletions(-)
> >
> > diff --git a/hw/nand.c b/hw/nand.c
> > index 01f3ada..f931d0c 100644
> > --- a/hw/nand.c
> > +++ b/hw/nand.c
> > @@ -478,6 +478,12 @@ void nand_setio(DeviceState *dev, uint32_t value)
> > int i;
> > NANDFlashState *s = (NANDFlashState *) dev;
> > if (!s->ce && s->cle) {
> > + if (s->cmd == NAND_CMD_READSTATUS) {
> > + s->addr = 0;
> > + s->addrlen = 0;
> > + s->iolen = 0;
> > + }
> > +
>
> I find the NAND chip datasheets remarkably hard to interpret, but
> I'm not convinced this patch is the right thing. Can you provide
> some rationale/justification, please? (ideally with reference to
> datasheets...)
This is patch is quite old (several years). At the time modern linux kernels
stopped working with our nand model in some cases. Some patch to our
nand model broke something. I recall trying to make some sense out of
it and this was the closest I got..
I don't know what the state it is today nor do I remember the exact
circumstances on which the bug was trigged. Maybe Peter C has more
info?
Cheers,
Edgar
next prev parent reply other threads:[~2012-10-19 12:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-19 6:40 [Qemu-devel] [PATCH v1 0/7] QOMify pflash_cfi0x + PL353 for Xilinx Zynq Peter Crosthwaite
2012-10-19 6:40 ` [Qemu-devel] [PATCH v1 1/7] pflash_cfi0x: remove unused base field Peter Crosthwaite
2012-10-19 7:58 ` Peter Maydell
2012-10-19 6:40 ` [Qemu-devel] [PATCH v1 2/7] pflash_cfi01: remove unused total_len field Peter Crosthwaite
2012-10-19 7:59 ` Peter Maydell
2012-10-19 6:40 ` [Qemu-devel] [PATCH v1 3/7] pflash_cfi0x: QOMified Peter Crosthwaite
2012-10-19 10:08 ` Paolo Bonzini
2012-10-19 10:24 ` Peter Maydell
2012-10-22 6:46 ` Peter Crosthwaite
2012-10-19 6:40 ` [Qemu-devel] [PATCH v1 4/7] sysbus/sysbus_mmio_map: parameterise mapped region Peter Crosthwaite
2012-10-19 8:06 ` Peter Maydell
2012-10-19 9:01 ` Peter Crosthwaite
2012-10-19 6:40 ` [Qemu-devel] [PATCH v1 5/7] hw: Model of Primecell pl35x mem controller Peter Crosthwaite
2012-10-19 6:40 ` [Qemu-devel] [PATCH v1 6/7] xilinx_zynq: add pl353 Peter Crosthwaite
2012-10-19 10:32 ` Peter Maydell
2012-10-19 23:00 ` Peter Crosthwaite
2012-10-19 6:40 ` [Qemu-devel] [PATCH v1 7/7] nand: Reset addressing after READSTATUS Peter Crosthwaite
2012-10-19 11:59 ` Peter Maydell
2012-10-19 12:18 ` Edgar E. Iglesias [this message]
2012-10-22 7:05 ` Peter Crosthwaite
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=20121019121817.GC16244@zapo \
--to=edgar.iglesias@gmail.com \
--cc=john.williams@xilinx.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.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).