From: Boris Brezillon <boris.brezillon@bootlin.com>
To: <Tudor.Ambarus@microchip.com>, <linux-mtd@lists.infradead.org>
Cc: <marek.vasut@gmail.com>, <dwmw2@infradead.org>,
<computersforpeace@gmail.com>, <richard@nod.at>,
<Cyrille.Pitchen@microchip.com>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] mtd: spi-nor: parse SFDP 4-byte Address Instruction Table
Date: Wed, 28 Nov 2018 15:22:45 +0100 [thread overview]
Message-ID: <20181128152245.1bb0ccd8@bbrezillon> (raw)
In-Reply-To: <b1052dff-e1a9-2d3f-b921-661c72e0e137@microchip.com>
On Wed, 28 Nov 2018 14:17:12 +0000
<Tudor.Ambarus@microchip.com> wrote:
> On 11/28/2018 09:57 AM, Boris Brezillon wrote:
> > On Tue, 20 Nov 2018 11:55:21 +0000
> > <Tudor.Ambarus@microchip.com> wrote:
> >
> >> +
> >> + /*
> >> + * We set nor->addr_width here to skip spi_nor_set_4byte_opcodes()
> >> + * later because this latest function implements a legacy quirk for
> >> + * the erase size of Spansion memory. However this quirk is no longer
> >> + * needed with new SFDP compliant memories.
> >> + */
> >> + nor->addr_width = 4;
> >> + nor->flags |= SPI_NOR_4B_OPCODES;
> >
> > You mean SNOR_F_4B_OPCODES (the one introduced here [1]), because
> > SPI_NOR_4B_OPCODES should only be used for flash_info->flags and might
> > soon conflict with another SNOR_F_ flag?
> >
>
> yes, you're right.
>
> > [1]http://patchwork.ozlabs.org/patch/991476/
> >
>
> Can you apply your patch? Will submit a new version afterwards.
Actually, I realized setting SNOR_F_4B_OPCODES when the BFPT advertises
4_BYTES_ONLY is incorrect as 4bytes only can mean "use the 3B opcodes
but pass address on 4 bytes". Here is a new version of this patch [1].
Feel free to pick it up and send it along with your "SFDP 4-byte Address
Instruction Table" patch (I have not reason to send it alone since the
problem I was trying to solve is no longer fixed by [1]).
[1]https://github.com/bbrezillon/linux-0day/commit/a953b6b435ec67bca00d6666f472db5f6dca4f63
prev parent reply other threads:[~2018-11-28 14:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-20 11:55 [PATCH] mtd: spi-nor: parse SFDP 4-byte Address Instruction Table Tudor.Ambarus
2018-11-20 15:35 ` kbuild test robot
2018-11-20 15:43 ` Tudor.Ambarus
2018-11-20 17:43 ` kbuild test robot
2018-11-28 7:57 ` Boris Brezillon
2018-11-28 14:17 ` Tudor.Ambarus
2018-11-28 14:22 ` Boris Brezillon [this message]
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=20181128152245.1bb0ccd8@bbrezillon \
--to=boris.brezillon@bootlin.com \
--cc=Cyrille.Pitchen@microchip.com \
--cc=Tudor.Ambarus@microchip.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=richard@nod.at \
/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