Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Norris <computersforpeace@gmail.com>
To: "Gupta, Pekon" <pekon@ti.com>
Cc: David Mosberger <davidm@egauge.net>, Gerhard Sittig <gsi@denx.de>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	Artem Bityutskiy <dedekind1@gmail.com>
Subject: Re: [REV3] mtd: nand: Prepare for Micron on-die ECC controller support.
Date: Tue, 1 Apr 2014 02:33:49 -0700	[thread overview]
Message-ID: <20140401093349.GK6400@brian-ubuntu> (raw)
In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EAB9FD4@DBDE04.ent.ti.com>

On Tue, Apr 01, 2014 at 05:29:54AM +0000, Pekon Gupta wrote:
> >From: David Mosberger [mailto:davidm@egauge.net]
> >The ECC-mode of the driver never changes.
> >Sure, what you describe could be implemented as an additional feature
> >in the future (I don't have any plans to do so since it makes little sense to
> >me, as no other ECC-mode uses the layout of the on-die-controller).
> >
> >To be honest, I'm a bit confused: on the one hand, you're asking me to
> >simplify the patches into smaller pieces, on the other you seem to ask
> >for new features.
> >
> I too would like to see ECC-mode selection based on user's choice.

I think what Gerhard was asking and what Pekon is asking for are
different. I don't think Gerhard's suggestion is realistic (that users
would change ECC modes mid-use). But Pekon's following concern (which I
share) sounds more reasonable, I think, for init-time configuration.

> So there should be mechanism to enable/disable this feature based on
> DT or platform-data. And onfi_set_feature() is the correct thing to use.
> This would make your patches more simple, without disturbing the generic
> frame-work. If you patch causes any regression, or abruptly changes
> behavior of any working driver, then it's less likely to get accepted.

I actually don't think his patches would abruptly change any working
driver, since it only utilizes on-die ECC if the chip already had it
enabled (and existing drivers would thus not function properly). But I
don't think it's the best design, since it assumes that the flash's
initial state is the expected mode of operation.

> So, instead of re-sending patches it's important to discuss the changes.

Yes, please.

Brian

  reply	other threads:[~2014-04-01  9:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-28 16:56 [REV3] mtd: nand: Prepare for Micron on-die ECC controller support David Mosberger
2014-03-29 13:16 ` Gerhard Sittig
2014-03-31 18:33   ` David Mosberger
2014-03-31 19:45     ` Gerhard Sittig
2014-03-31 20:58       ` David Mosberger
2014-04-01  5:29         ` Gupta, Pekon
2014-04-01  9:33           ` Brian Norris [this message]
2014-04-01  9:19         ` Brian Norris
2014-04-01 14:06         ` Gerhard Sittig

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=20140401093349.GK6400@brian-ubuntu \
    --to=computersforpeace@gmail.com \
    --cc=davidm@egauge.net \
    --cc=dedekind1@gmail.com \
    --cc=gsi@denx.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=pekon@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