From: Marek Vasut <marex-ynQEQJNshbs@public.gmane.org>
To: Brian Norris <computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Insop Song <Insop.Song-X7+3OicCfH32eFz/2MeuCQ@public.gmane.org>,
"linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
"Priyanka.Jain-KZfg59tc24xl57MIdRCFDg@public.gmane.org"
<Priyanka.Jain-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Subject: Re: [PATCH] Check flag status register for Micron n25q512a
Date: Thu, 27 Feb 2014 21:01:59 +0100 [thread overview]
Message-ID: <201402272101.59845.marex@denx.de> (raw)
In-Reply-To: <20140227073314.GD13420@norris-Latitude-E6410>
On Thursday, February 27, 2014 at 08:33:14 AM, Brian Norris wrote:
> + Marek
Thanks, I really need to subscribe to this ML ;-/
> Hi Insop,
>
> On Mon, Jan 06, 2014 at 05:21:17AM +0000, Insop Song wrote:
> > In order to use Micron n25q512a, MTD, two changes are required as
> > follows: - jedec code should be fixed
>
> I have a feeling there are more than one "n25q512a" device, with
> different IDs.
ACK, I have similar feeling. Jain, can you tell us the precise marking on your
N25Q512A chip (that is, every single letter on the top of the chip package
exactly as it is engraved there ) please? Or make a photo ...
Insop, can you please do the same ?
[...]
> > @@ -782,7 +864,7 @@ static const struct spi_device_id m25p_ids[] = {
> >
> > { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, 0) },
> > { "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256, 0) },
> > { "n25q256a", INFO(0x20ba19, 0, 64 * 1024, 512, SECT_4K) },
> >
> > - { "n25q512a", INFO(0x20bb20, 0, 64 * 1024, 1024, SECT_4K) },
> > + { "n25q512a", INFO(0x20ba20, 0, 64 * 1024, 1024, SECT_4K) },
>
> You probably want to figure out the distinction between the old table
> entry and the new one, and assign your new entry a new string
> accordingly.
ACK. The datasheet actually claims this change is correct, see [1] (page 40,
table 21), but as we know, Micron really does shitty job when it comes to using
the JEDEC IDs for it's chips.
> > /* PMC */
> > { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },
> >
> > @@ -996,6 +1078,13 @@ static int m25p_probe(struct spi_device *spi)
> >
> > spi_set_drvdata(spi, flash);
> >
> > /*
> >
> > + * Micron n25q512a requires to check flag status register
> > + */
> > + flash->flag_status = false;
> > + if (strcmp(id->name, "n25q512a") == 0)
> > + flash->flag_status = true;;
>
> This doesn't look good at all. If any other flash start to need this, we
> don't want to code each ID string here. That's fragile and
> non-scaleable. If we need this option, you need to add another flag to
> the m25p_ids[] table, I guess...
This waiting for some bit in FSR looks like it can be wrapped into
wait_till_ready(), no ?
What I cannot find in the datasheet though is any evidence which would clearly
mandate the use of FSR bit 0x80 to test if the chip is ready for next operation
instead of using the regular STATUS register bit . Insop, can you please
elaborate on why using the FSR is needed ?
[1]
https://www.micron.com/~/media/Documents/Products/Data%20Sheet/NOR%20Flash/Serial%20NOR/N25Q/n25q_512mb_1ce_3v_65nm.pdf
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-02-27 20:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-06 5:21 [PATCH] Check flag status register for Micron n25q512a Insop Song
[not found] ` <6bf927e513554e628fe15d309aac698e-rlQrbxGbpbNDMtzC+POkThQPvRvOrrxkXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-02-27 7:33 ` Brian Norris
2014-02-27 20:01 ` Marek Vasut [this message]
[not found] ` <201402272101.59845.marex-ynQEQJNshbs@public.gmane.org>
2014-03-01 2:44 ` Insop Song
[not found] ` <106fa8b5760a4a88be8cb469fab79186-Rl8gF8DaO8TbI3BPuG3eVRQPvRvOrrxkXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-03-01 19:22 ` Marek Vasut
2014-03-01 2:00 ` Insop Song
[not found] ` <d695e8d34cac47608353f858d51c3e59-Rl8gF8DaO8TbI3BPuG3eVRQPvRvOrrxkXA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-03-01 19:04 ` Marek Vasut
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=201402272101.59845.marex@denx.de \
--to=marex-ynqeqjnshbs@public.gmane.org \
--cc=Insop.Song-X7+3OicCfH32eFz/2MeuCQ@public.gmane.org \
--cc=Priyanka.Jain-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.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).