From: Frieder Schrempf <frieder.schrempf@kontron.de>
To: Chuanhong Guo <gch981213@gmail.com>
Cc: linux-mtd@lists.infradead.org,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Boris Brezillon <boris.brezillon@collabora.com>,
Christophe Kerello <christophe.kerello@foss.st.com>,
Mark Brown <broonie@kernel.org>, Daniel Palmer <daniel@0x0f.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] mtd: spinand: add support for detection with param page
Date: Tue, 17 May 2022 09:35:50 +0200 [thread overview]
Message-ID: <e883bc7d-7553-3064-27c3-6dfe23b0e0cf@kontron.de> (raw)
In-Reply-To: <CAJsYDVJ=WRT270mj2jNc+yy0v_XRpyH8N+GOmkNJv1zAh76rDA@mail.gmail.com>
Am 16.05.22 um 16:10 schrieb Chuanhong Guo:
> Hi!
>
> On Mon, May 16, 2022 at 3:38 PM Frieder Schrempf
> <frieder.schrempf@kontron.de> wrote:
>>
>> Hi Chuanhong,
>>
>> Am 14.04.22 um 16:34 schrieb Chuanhong Guo:
>>> SPI-NAND detection using chip ID isn't always reliable.
>>> Here are two known cases:
>>> 1. ESMT uses JEDEC ID from other vendors. This may collapse with future
>>> chips.
>>> 2. Winbond W25N01KV uses the exact same JEDEC ID as W25N01GV while
>>> having completely different chip parameters.
>>
>> I think they share the same first byte of the JEDEC ID, but the second
>> byte actually differs and would allow to differentiate between them, right?
>
> No. For the 128M version, all 3 bytes are the same between
> W25N01GV and W25N01KV.
>
>>
>> I have this patchset [1] that I didn't manage to send upstream yet which
>> adds support for the W25N02KV. I added the second ID byte to detect them.
>>
>> Still your approach using the ONFI data is more flexible of course and
>> probably a better way to handle this. I will see if I can find some time
>> to add support for the W25N02KV based on your patches.
>
> Don't do that. I abandoned this patchset because I later found that
> some early W25N01GV doesn't contain a parameter page at all,
> which means detecting W25N01GV/KV using only the parameter
> page is unreliable.
> I think what Boris proposed earlier in v1 (use parameter page
> just to distinguish the two chips) is the correct way to go.
>
> BTW I was making this patchset for a potential future ID conflict
> between ESMT and GigaDevice, and I don't actually need to
> deal with the W25N01GV/KV nonsense now, so I don't have a
> plan for send a new version of this atm.
Ok, what a mess. Thanks for the explanations. I will try to send my
original patches for supporting W25N02KV then.
next prev parent reply other threads:[~2022-05-17 7:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 14:34 [PATCH 0/2] " Chuanhong Guo
2022-04-14 14:34 ` [PATCH 1/2] " Chuanhong Guo
2022-04-14 15:06 ` Boris Brezillon
2022-04-14 16:26 ` Chuanhong Guo
2022-05-16 7:38 ` Frieder Schrempf
2022-05-16 14:10 ` Chuanhong Guo
2022-05-17 7:35 ` Frieder Schrempf [this message]
2022-04-14 14:34 ` [PATCH 2/2] mtd: spinand: probe Winbond W25N01GV/W using " Chuanhong Guo
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=e883bc7d-7553-3064-27c3-6dfe23b0e0cf@kontron.de \
--to=frieder.schrempf@kontron.de \
--cc=boris.brezillon@collabora.com \
--cc=broonie@kernel.org \
--cc=christophe.kerello@foss.st.com \
--cc=daniel@0x0f.com \
--cc=gch981213@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=patrice.chotard@foss.st.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
/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
all inboxes | Powered by JetHome®