From: "Cédric Le Goater" <clg@kaod.org>
To: Marek Vasut <marek.vasut@gmail.com>,
Alexander Amelkin <a.amelkin@yadro.com>,
linux-mtd@lists.infradead.org
Cc: openbmc@lists.ozlabs.org, Joel Stanley <joel@jms.id.au>,
leroi.lists@gmail.com
Subject: Re: [PATCH] mtd: spi-nor: fix options for mx66l51235f
Date: Wed, 29 Aug 2018 14:12:31 +0200 [thread overview]
Message-ID: <c8b2b68f-b5fe-00ce-df53-f1d32400460b@kaod.org> (raw)
In-Reply-To: <5678bf9c-6d9d-294d-3029-710988108bc3@gmail.com>
[ ... ]
> 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() ?
Thanks,
C.
next prev parent reply other threads:[~2018-08-29 12:12 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 [this message]
2018-08-30 14:16 ` Cyrille Pitchen
2018-08-30 14:17 ` Marek Vasut
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=c8b2b68f-b5fe-00ce-df53-f1d32400460b@kaod.org \
--to=clg@kaod.org \
--cc=a.amelkin@yadro.com \
--cc=joel@jms.id.au \
--cc=leroi.lists@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--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