From: Marek Vasut <marex-ynQEQJNshbs@public.gmane.org>
To: Kevin Cernekee <cernekee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: David Woodhouse
<david.woodhouse-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
dedekind1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
Artem Bityutskiy
<artem.bityutskiy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH V5] mtd: m25p80: Make fast read configurable via DT
Date: Sun, 26 Aug 2012 11:11:52 +0200 [thread overview]
Message-ID: <201208261111.52887.marex@denx.de> (raw)
In-Reply-To: <CAJiQ=7BCaV7jx9yjJiEQ8RUuqHdUV0x7_gxZM97KKytVVS3ZUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Dear Kevin Cernekee,
> On Sat, Aug 25, 2012 at 1:40 PM, Marek Vasut <marex-ynQEQJNshbs@public.gmane.org> wrote:
> >> Are there any modern SPI flash parts that can't handle FAST_READ, or
> >> is this mostly for compatibility with legacy systems?
> >
> > We have to support all possibilities, not only "modern systems" .
>
> If the !FAST_READ option only exists to support a tiny number of rare,
> ancient flash chips, then it's probably worth pointing that out to the
> user in the help text. Similar to "most users will say 'N' here" in
> Kconfig. Or the help text for CONFIG_MTD_NAND_MUSEUM_IDS.
>
> > Good, but I don't see it supported in the driver, how is this different
> > from MX25L256E?
> >
> > They can be added as additional DT props, that should be easy.
>
> It's easy to add new features to m25p80, but it's hard to change DT
> properties once they are widely used. They will be baked into
> bootloader images and could be utilized by non-Linux operating
> systems.
>
> If we already know today that a boolean property is insufficient for
> current generations of SPI flash chips, it would not be a good thing
> to write it in stone now and be forced to hack around it later.
Actually, fast read opcode will always be fast read opcode. I do see your
concern, but then, until there is a way to probe for supported opcodes and
features, you'll end up having to describe your chip properly.
Of course, the list of IDs built into Linux is cool and can be used to toggle
the fast read I think, but what about running older linux kernel with a new chip
it doesn't support? The DT props could be easily used to describe even the new
chip then and there won't be any problem -- compared to "internal ID table".
Best regards,
Marek Vasut
next prev parent reply other threads:[~2012-08-26 9:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-25 19:36 [PATCH V5] mtd: m25p80: Make fast read configurable via DT Marek Vasut
2012-08-25 20:22 ` Kevin Cernekee
[not found] ` <CAJiQ=7BAH_87jrDCG=Jbw7ezsezFWrBv+eUkoH5jGmeV9tQiYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-08-25 20:40 ` Marek Vasut
2012-08-25 22:06 ` Kevin Cernekee
[not found] ` <CAJiQ=7BCaV7jx9yjJiEQ8RUuqHdUV0x7_gxZM97KKytVVS3ZUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-08-26 9:11 ` Marek Vasut [this message]
[not found] ` <1345923416-9293-1-git-send-email-marex-ynQEQJNshbs@public.gmane.org>
2012-09-04 0:04 ` Marek Vasut
2012-09-17 14:10 ` Marek Vasut
[not found] ` <201209171610.28410.marex-ynQEQJNshbs@public.gmane.org>
2012-09-21 13:19 ` Artem Bityutskiy
[not found] ` <1348233550.7550.2.camel-Bxnoe/o8FG+Ef9UqXRslZEEOCMrvLtNR@public.gmane.org>
2012-09-24 1:30 ` Marek Vasut
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=201208261111.52887.marex@denx.de \
--to=marex-ynqeqjnshbs@public.gmane.org \
--cc=artem.bityutskiy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=cernekee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=david.woodhouse-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=dedekind1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.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;
as well as URLs for NNTP newsgroup(s).