public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Takahiro Kuwano <tkuw584924@gmail.com>
To: Tudor.Ambarus@microchip.com, linux-mtd@lists.infradead.org
Cc: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com,
	p.yadav@ti.com, Bacem.Daassi@infineon.com,
	Takahiro.Kuwano@infineon.com
Subject: Re: [PATCH v11 3/3] mtd: spi-nor: spansion: Add s25hl-t/s25hs-t IDs and fixups
Date: Thu, 21 Apr 2022 15:58:06 +0900	[thread overview]
Message-ID: <837e482b-c7dc-23ce-27fd-33b453b3dce9@gmail.com> (raw)
In-Reply-To: <3421477a-a3a5-3fec-6e4b-8c0c319aa671@microchip.com>



On 4/20/2022 5:46 PM, Tudor.Ambarus@microchip.com wrote:
> On 4/20/22 11:38, Takahiro Kuwano wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>
>> On 4/20/2022 5:11 PM, Tudor.Ambarus@microchip.com wrote:
>>> On 4/20/22 10:50, Takahiro Kuwano wrote:
[...]
>>> I agree with Pratyush that we shouldn't change the state of the flash at parsing
>>> time. So to solve this we could introduce nor->params->addr_width to set it at
>>> parsing time, and use the default nor->addr_width for ops at parsing time for
>>> all the parsers.
>>>
>> The default nor->addr_width comes from BFPT parse (no change in BFPT parse).
>> In 4bait parse, nor->params->addr_width is updated instead of nor->addr_width.
>> Then,
>>
>> static int spi_nor_set_addr_width(struct spi_nor *nor)
>> {
>> +       if (nor->params->addr_width)
>> +               nor->addr_width = nor->params->addr_width;
> 
> remove the above and
>>
>>         if (nor->addr_width) {
> replace the if condition with:
> 	if (nor->params->addr_width)
> 		nor->addr_width = nor->params->addr_width;
> 	else if {
> 
> and the behavior should be kept as before
> 
>>                 /* already configured from SFDP */
>>         } else if (nor->read_proto == SNOR_PROTO_8_8_8_DTR) {
>>
>> Is this something we are going to do?
> 
> sounds good on a first read, yes

Hi Tudor,

As Pratyush mentioned in that thread, we already have SNOR_F_HAS_4BAIT flag.
Please see new patch in revised series.
https://patchwork.ozlabs.org/project/linux-mtd/patch/d705a2c1fc8d0a59c93454aa05642aafe4fc960b.1650519576.git.Takahiro.Kuwano@infineon.com/

Best Regards,
Takahiro

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2022-04-21  6:58 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-18  5:41 [PATCH v11 0/3] mtd: spi-nor: Add support for Infineon s25hl-t/s25hs-t tkuw584924
2022-04-18  5:41 ` [PATCH v11 1/3] mtd: spi-nor: spansion: Add support for volatile QE bit tkuw584924
2022-04-19  8:01   ` Tudor.Ambarus
2022-04-20  1:03     ` Takahiro Kuwano
2022-04-19 12:53   ` Tudor.Ambarus
2022-04-20  0:48     ` Takahiro Kuwano
2022-04-18  5:41 ` [PATCH v11 2/3] mtd: spi-nor: spansion: Add local function to discover page size tkuw584924
2022-04-19  8:06   ` Tudor.Ambarus
2022-04-20  1:41     ` Takahiro Kuwano
2022-04-18  5:41 ` [PATCH v11 3/3] mtd: spi-nor: spansion: Add s25hl-t/s25hs-t IDs and fixups tkuw584924
2022-04-19  9:32   ` Tudor.Ambarus
2022-04-20  5:34     ` Takahiro Kuwano
2022-04-20  6:11       ` Tudor.Ambarus
2022-04-20  6:58         ` Takahiro Kuwano
2022-04-20  7:35           ` Tudor.Ambarus
2022-04-20  7:47             ` Tudor.Ambarus
2022-04-20  7:50               ` Takahiro Kuwano
2022-04-20  8:11                 ` Tudor.Ambarus
2022-04-20  8:38                   ` Takahiro Kuwano
2022-04-20  8:46                     ` Tudor.Ambarus
2022-04-21  6:58                       ` Takahiro Kuwano [this message]
2022-04-20  8:32             ` Takahiro Kuwano
2022-04-20  8:49               ` Tudor.Ambarus

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=837e482b-c7dc-23ce-27fd-33b453b3dce9@gmail.com \
    --to=tkuw584924@gmail.com \
    --cc=Bacem.Daassi@infineon.com \
    --cc=Takahiro.Kuwano@infineon.com \
    --cc=Tudor.Ambarus@microchip.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=p.yadav@ti.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