mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: David Woodhouse <dwmw2@infradead.org>
Cc: "'Kevin Hilman'" <khilman@deeprootsystems.com>,
	Sudhakar Rajashekhara <sudhakar.raj@ti.com>,
	"'Bernd Schmidt'" <bernd.schmidt@analog.com>,
	"'Nicolas Pitre'" <nico@fluxnic.net>,
	linux-kernel@vger.kernel.org,
	"'David Howells'" <dhowells@redhat.com>,
	"'David Brownell'" <dbrownell@users.sourceforge.net>,
	linux-mtd@lists.infradead.org,
	"'Andrew Morton'" <akpm@linux-foundation.org>
Subject: RE: [PATCH 1/2] mtdpart: memory accessor interface for MTD layer
Date: Wed, 4 Aug 2010 03:31:45 -0700 (PDT)	[thread overview]
Message-ID: <350720.60481.qm@web180309.mail.gq1.yahoo.com> (raw)
In-Reply-To: <1280916725.19499.12.camel@localhost>



--- On Wed, 8/4/10, David Woodhouse <dwmw2@infradead.org> wrote:
> On Wed, 2010-07-07 at 04:08 -0700,
> David Brownell wrote:
> > 
> > I think the short answer is that the callout is
> > what provides the board drivers enough information
> > to make the correct calls. 

EMPHASIS ON "CORRECT" ...

> I don't see how.
> 
> The only information it passes to the callout is the
> information it was
> already *given* in the partition structure.

There can be multiple such structures, each
of which describes different data to be extracted
from different persistent media contexts.

Examples:  one context holds one MAC address (and
another, a different one) ... another might embed
calibration data; another, serial numbers; etc.

Pass the wrong context around, you've trashed all
the data instead of getting it right.


> I'm more inclined to believe Sudhakar's claim that you'll
> get an
> 'initialization sequence problem', although I'm not sure I
> believe it
> can't be solved in a better way than this.

"Initialization sequence" is a grab-bag category
that covers most init issues.

Point is to ensure that enough of the right context
information is available to initialize correctly.
So the right data is extracted and passed on.


> 
> I'm also unhappy that it only works on partitioned devices
> -- that seems wrong.

Very different issue.  Seems easily fixable
if needed.  Agreed that e.g. EEPROMS won't
often be partitioned (unlike flash).




  reply	other threads:[~2010-08-04 10:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <012f01cb1dc3$09584880$1c08d980$@raj@ti.com>
2010-07-07 11:08 ` David Brownell
2010-08-04 10:12   ` David Woodhouse
2010-08-04 10:31     ` David Brownell [this message]
2010-08-04 11:08       ` David Woodhouse
2010-08-04 11:27         ` David Brownell
     [not found]         ` <000401cb3533$5c982470$15c86d50$@raj@ti.com>
2010-08-08 12:23           ` David Woodhouse
     [not found] <027001cb1eaf$a7dc64e0$f7952ea0$@raj@ti.com>
2010-07-08 16:00 ` David Brownell
2010-03-16 20:41 Kevin Hilman
2010-04-08  8:10 ` Artem Bityutskiy
2010-05-13 23:50 ` David Woodhouse

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=350720.60481.qm@web180309.mail.gq1.yahoo.com \
    --to=david-b@pacbell.net \
    --cc=akpm@linux-foundation.org \
    --cc=bernd.schmidt@analog.com \
    --cc=dbrownell@users.sourceforge.net \
    --cc=dhowells@redhat.com \
    --cc=dwmw2@infradead.org \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=nico@fluxnic.net \
    --cc=sudhakar.raj@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

all inboxes | Powered by JetHome®