From: Brian Norris <computersforpeace@gmail.com>
To: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: Zhiqiang Hou <Zhiqiang.Hou@nxp.com>,
linux-mtd@lists.infradead.org,
Linux Kernel <linux-kernel@vger.kernel.org>,
David Woodhouse <dwmw2@infradead.org>,
Boris BREZILLON <boris.brezillon@free-electrons.com>,
Marek Vasut <marek.vasut@gmail.com>,
Richard Weinberger <richard@nod.at>,
Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>,
NeilBrown <neil@brown.name>
Subject: Re: [PATCHv3 2/2] mtd: m25p80: restore the status of SPI flash when exiting
Date: Tue, 24 Jul 2018 12:52:02 -0700 [thread overview]
Message-ID: <20180724195202.GB190016@ban.mtv.corp.google.com> (raw)
In-Reply-To: <20180724011811.40165a35@bbrezillon>
Hi Boris,
On Tue, Jul 24, 2018 at 01:18:11AM +0200, Boris Brezillon wrote:
> On Mon, 23 Jul 2018 15:06:43 -0700
> Brian Norris <computersforpeace@gmail.com> wrote:
> > On Mon, Jul 23, 2018 at 1:10 PM, Boris Brezillon
> > <boris.brezillon@bootlin.com> wrote:
> > > but it still seems to improve things. Of course, that means the
> > > user should try to re-route all HW reset sources to SW ones (RESET input
> > > pin muxed to the GPIO controller, watchdog generating an interrupt
> > > instead of directly asserting the RESET output pin), which is not always
> > > possible, but even when it's not, isn't it better to have a setup that
> > > works fine 99% of the time instead of 50% of the time?
> >
> > Perhaps, but not at the expense of future development. And
> > realistically, no one is doing that if they have this hack. Most
> > people won't even know that this hack is protecting them at all (so
> > again, they won't try to mitigate the problem any further).
>
> Unless we add a huge backtrace at probe time which forces them to look
> closer at what they did wrong (like you seem to suggest below).
Sure, if we can force a huge backtrace, then maybe that's an acceptable
situation. I just predict that someday, somebody will argue that the
warning should be downgraded, since there's nothing the average user can
do about it. (Well, except not buying from that manufacturer in the
future.)
> > Or even better: put this hack behind a DT flag, so that one has to
> > admit that their board design is broken before it will even do
> > anything. Proposal: "linux,badly-designed-flash-reset".
>
> I think we can remove the "linux," prefix. If it's badly designed, it
> applies to all OSes, don't you think?
Sure.
Shall I send a patch?
Brian
next prev parent reply other threads:[~2018-07-24 19:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-06 2:53 [PATCHv3 0/2] mtd: m25p80: restore the addressing mode " Zhiqiang Hou
2017-12-06 2:53 ` [PATCHv3 1/2] mtd: spi-nor: add an API to restore the status of SPI flash chip Zhiqiang Hou
2017-12-12 13:12 ` Cyrille Pitchen
2017-12-06 2:53 ` [PATCHv3 2/2] mtd: m25p80: restore the status of SPI flash when exiting Zhiqiang Hou
2017-12-12 13:19 ` Cyrille Pitchen
2018-07-23 18:13 ` Brian Norris
2018-07-23 20:10 ` Boris Brezillon
2018-07-23 22:06 ` Brian Norris
2018-07-23 22:46 ` NeilBrown
2018-07-23 23:22 ` Boris Brezillon
2018-07-24 1:51 ` NeilBrown
2018-07-24 19:41 ` Brian Norris
2018-07-24 21:48 ` NeilBrown
2018-07-25 23:24 ` Brian Norris
2018-07-23 23:18 ` Boris Brezillon
2018-07-24 19:52 ` Brian Norris [this message]
2018-07-24 19:59 ` Boris Brezillon
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=20180724195202.GB190016@ban.mtv.corp.google.com \
--to=computersforpeace@gmail.com \
--cc=Zhiqiang.Hou@nxp.com \
--cc=boris.brezillon@bootlin.com \
--cc=boris.brezillon@free-electrons.com \
--cc=cyrille.pitchen@wedev4u.fr \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=neil@brown.name \
--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
all inboxes | Powered by JetHome®