From: Brian Norris <computersforpeace@gmail.com>
To: Nikita Nazarenko <nnazarenko@radiofid.com>
Cc: linux-mtd@lists.infradead.org, "Gabor Juhos" <juhosg@openwrt.org>,
"Marek Vasut" <marex@denx.de>, "Rafał Miłecki" <zajec5@gmail.com>
Subject: Re: [PATCH] mtd: spi-nor: Add support for ISSI is25lp128
Date: Mon, 7 Mar 2016 13:32:02 -0800 [thread overview]
Message-ID: <20160307213202.GA52131@google.com> (raw)
In-Reply-To: <1455041563-12483-1-git-send-email-nnazarenko@radiofid.com>
+ Gabor, who submitted the other ISSI entry; and some others
On Tue, Feb 09, 2016 at 09:12:43PM +0300, Nikita Nazarenko wrote:
> Signed-off-by: Nikita Nazarenko <nnazarenko@radiofid.com>
> ---
> drivers/mtd/spi-nor/spi-nor.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index ed0c19c..e0bb151 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -739,6 +739,7 @@ static const struct flash_info spi_nor_ids[] = {
>
> /* ISSI */
Both of these ISSI entries look wrong.
> { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
Looking at the datasheet for this part [1], shouldn't the ID be
0x9d7f20 (i.e., the MFR ID is 0x9d, not 0x7f)? That would match the
existing CFI definition for "PMC". And IIUC, PMC got bought by ISSI? Or
some kind of merger, I don't follow these things.
> + { "is25lp128", INFO(0x9d6018, 0, 32 * 1024, 512, SECT_4K) },
This datasheet [1] says that for SPI mode (not QPI mode), 4K erase is
done with opcode 0xD7 (i.e., SPINOR_OP_BE_4K_PMC) not 0x20
(SPINOR_OP_BE_4K). So we would need the SECT_4K_PMC, not the SECT_4K
flag.
Also, the datasheet for this device says it supports 64K sectors, and
the 32K sectors require a different erase command (SPINOR_OP_BE_32K; not
currently supported in this driver). Did you test erase to be sure it
worked as expected? Or are one or more datasheets wrong?
Regards,
Brian
> /* Macronix */
> { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) },
[1] I'm looking at these:
http://www.issi.com/WW/pdf/25LP128.pdf
http://www.issi.com/WW/pdf/25CD512-010-020.pdf
next prev parent reply other threads:[~2016-03-07 21:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 18:12 [PATCH] mtd: spi-nor: Add support for ISSI is25lp128 Nikita Nazarenko
2016-03-07 21:32 ` Brian Norris [this message]
2016-03-08 17:26 ` Gabor Juhos
2016-03-08 18:10 ` Brian Norris
2016-03-08 21:17 ` Gabor Juhos
2017-10-17 23:14 ` angelo
[not found] ` <e61e305b-4ff4-a89c-bc60-7604526bbb0f@radiofid.com>
2017-10-18 20:21 ` Angelo Dureghello
[not found] ` <d02249d4-ce36-8e59-3b96-c8f19c546d67@radiofid.com>
2017-10-19 20:32 ` Angelo Dureghello
-- strict thread matches above, loose matches on Subject: below --
2017-10-19 21:29 [PATCH] mtd: spi-nor: add " Angelo Dureghello
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=20160307213202.GA52131@google.com \
--to=computersforpeace@gmail.com \
--cc=juhosg@openwrt.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marex@denx.de \
--cc=nnazarenko@radiofid.com \
--cc=zajec5@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.