From: David Jander <david.jander@protonic.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] MTD: Add support for S25FL032P spi nor-flash
Date: Tue, 24 Aug 2010 20:36:43 +0200 [thread overview]
Message-ID: <201008242036.43387.david.jander@protonic.nl> (raw)
In-Reply-To: <201008241206.27845.vapier@gentoo.org>
On Tuesday 24 August 2010 06:06:26 pm Mike Frysinger wrote:
> On Tuesday, August 24, 2010 02:39:16 David Jander wrote:
> > On Monday 23 August 2010 06:31:26 pm Mike Frysinger wrote:
> > > On Monday, August 23, 2010 09:12:16 David Jander wrote:
> > > > + {
> > > > + .idcode1 = SPSN_ID_S25FL032A,
> > > > + .idcode2 = SPSN_EXT_ID_S25FL032P,
> > > > + .idmask2 = 0xff00,
> > >
> > > what does the idcode2 look like such that you need a mask ?
> >
> > According to the datasheet the RDID command (0x9f) returns the following
> > bytes:
> >
> > byte 0: Manufacturer ID = 0x01
> > byte 1,2: Device ID = 0x02, 0x15 (same as S25FL032A)
> > byte 3: Extended ID = 0x4d
> > byte 4,5,6: Spansion reserved (do not use).
> >
> > byte 4 is read as 0x00 on my part, but due to the above explaination, I
> > cannot say for sure it is always the same, so I had to implement a mask
> > to check for it.
>
> i'd rather we delay adding code to support something that may never change.
> so drop the whole idmask2 stuff and wait for it to become an actual problem
> -mike
I agree that chances this ever breaks might seem rather tiny, but if it ever
does break, waiting for it to happen could trigger a much bigger problem than
it is to add these few lines; in the worst case, in some distant future, some
boards will just not work for no apparent reason (if spansion decided to do
something with byte 4 without notifying), and nobody will remember this
discussion anymore...
OTOH, you decide. It's ok with me if you want to leave it out. Given the fact
that you had already accepted this patch, should I send a new version (without
the mask)?
Best regards,
--
David Jander
Protonic Holland.
next prev parent reply other threads:[~2010-08-24 18:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 13:12 [U-Boot] [PATCH] MTD: Add support for S25FL032P spi nor-flash David Jander
2010-08-23 16:31 ` Mike Frysinger
2010-08-24 6:39 ` David Jander
2010-08-24 16:06 ` Mike Frysinger
2010-08-24 18:36 ` David Jander [this message]
2010-08-24 19:36 ` Mike Frysinger
2010-08-25 7:47 ` David Jander
2010-08-26 2:01 ` Mike Frysinger
2010-08-23 21:35 ` Mike Frysinger
2010-08-23 22:08 ` Mike Frysinger
2010-08-24 6:49 ` David Jander
-- strict thread matches above, loose matches on Subject: below --
2010-12-03 6:09 Macpaul Lin
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=201008242036.43387.david.jander@protonic.nl \
--to=david.jander@protonic.nl \
--cc=u-boot@lists.denx.de \
/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