public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: "Cyrille Pitchen" <cyrille.pitchen@wedev4u.fr>,
	"Cédric Le Goater" <clg@kaod.org>,
	"Alexander Amelkin" <a.amelkin@yadro.com>,
	linux-mtd@lists.infradead.org
Cc: leroi.lists@gmail.com, openbmc@lists.ozlabs.org,
	Joel Stanley <joel@jms.id.au>
Subject: Re: [PATCH] mtd: spi-nor: fix options for mx66l51235f
Date: Thu, 30 Aug 2018 16:17:12 +0200	[thread overview]
Message-ID: <259aa37f-9837-ad38-43e3-4fa71e721a9d@gmail.com> (raw)
In-Reply-To: <4c99e942-6641-97ca-bbac-040b05a308cb@wedev4u.fr>

On 08/30/2018 04:16 PM, Cyrille Pitchen wrote:
> Hi all,
> 
> Le 29/08/2018 à 14:12, Cédric Le Goater a écrit :
>> [ ... ] 
>>
>>> Ah, so the whole problem is, the ASpeed 2400 SPI NOR controller does
>>> memory-mapped read from the flash and that has some limitations when the
>>> flash is over 16 MiB in size -- it sends 3 byte standard opcodes with 4
>>> byte address ?
>>
>> yes.
>>
>> [ ... ]
>>
>>> To simplify the situation, if the ASpeed 2400 SPI NOR controller tried
>>> reading the SPI flash past 16 MiB, it would also require that the flash
>>> is in EN4B mode, yes ?
>>
>> yes.
>>
>> [ ... ]
>>
>>>> I start thinking about maybe adding an option to "jedec,spi-nor" DTS
>>>> binding like "enable-4byte-mode", so that we could get rid of our
>>>> local patch and just specify that option in the devicetree. The
>>>> option would force EN4B on the chip if it supports that mode. What do
>>>> you think? How do I do it if you approve? Send patches separately in
>>>> here and in the devicetree mailing list or cross-post both patches to
>>>> both lists?
>>>
>>> That's an option. But what I think this is really about is a fact that
>>> we completely lack any way to negotiate limitations between the SPI NOR
>>> and the controller.
>>
>> what about the hwcaps in spi_nor_scan() ? 
>>
> 
> Maybe only a matter of taste but I agree with Cedric: a new hwcaps sounds
> better than a new DT property. There are already different "compatible"
> strings to make the difference between AST2400 and AST2500, so we can
> add the new hwcap only to AST2400 entries. Then no need to update any
> existing device trees, at least in this case.
> 

Good idea :)

-- 
Best regards,
Marek Vasut

  reply	other threads:[~2018-08-30 14:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20 10:26 [PATCH] mtd: spi-nor: fix options for mx66l51235f Alexander Amelkin
2018-08-27 10:33 ` Marek Vasut
2018-08-27 11:24   ` Alexander Amelkin
2018-08-27 11:34     ` Marek Vasut
2018-08-28 11:29       ` Alexander Amelkin
2018-08-28 11:43         ` Marek Vasut
2018-08-28 15:54           ` Alexander Amelkin
2018-08-28 16:03             ` Marek Vasut
2018-08-29 11:00               ` Alexander Amelkin
2018-08-29 11:46                 ` Marek Vasut
2018-08-29 12:12                   ` Cédric Le Goater
2018-08-30 14:16                     ` Cyrille Pitchen
2018-08-30 14:17                       ` Marek Vasut [this message]
2018-08-29 12:05                 ` Cédric Le Goater
2018-08-29 21:16       ` Roman Yeryomin
2018-08-31  8:04         ` Cédric Le Goater

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=259aa37f-9837-ad38-43e3-4fa71e721a9d@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=a.amelkin@yadro.com \
    --cc=clg@kaod.org \
    --cc=cyrille.pitchen@wedev4u.fr \
    --cc=joel@jms.id.au \
    --cc=leroi.lists@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=openbmc@lists.ozlabs.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