public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Vimal Singh <vimal.newwork@gmail.com>
Cc: Linux MTD <linux-mtd@lists.infradead.org>, dedekind1@gmail.com
Subject: Re: [PATCH - V2] Add NAND lock/unlock routines
Date: Fri, 26 Feb 2010 12:47:40 +0000	[thread overview]
Message-ID: <1267188460.30247.10811.camel@macbook.infradead.org> (raw)
In-Reply-To: <ce9ab5791001130125ka4bfa26s906758545e679792@mail.gmail.com>

On Wed, 2010-01-13 at 14:55 +0530, Vimal Singh wrote:
> 
> >> @@ -2999,8 +3211,8 @@ int nand_scan_tail(struct mtd_info *mtd)
> >>       mtd->read_oob = nand_read_oob;
> >>       mtd->write_oob = nand_write_oob;
> >>       mtd->sync = nand_sync;
> >> -     mtd->lock = NULL;
> >> -     mtd->unlock = NULL;
> >> +     mtd->lock = nand_lock;
> >> +     mtd->unlock = nand_unlock;
> >
> > What makes you believe it is safe to assign these call-backs here?
> >
> > AFAICS, this means it will be done for all flashes. Do all of them
> > support lock/unlock? I did not investigate this, but I think that
> > probably not.
> 
> OK. In that case I'll rather not do it here and do it in my specific
> driver.

Hm, I'm not sure that's the best approach. It's a function of the NAND
chip, not the controller. We should detect the presence of the feature
from the chip ID, if at all possible.

I'm happy with your first two patches as part of a three-patch set
though. Thanks.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation

  reply	other threads:[~2010-02-26 12:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 14:24 [RFC][PATCH] Add NAND lock/unlock routines Vimal Singh
2009-12-04  8:38 ` Artem Bityutskiy
2009-12-07  6:48   ` Vimal Singh
2009-12-07  9:29     ` Artem Bityutskiy
2009-12-07 11:06       ` Vimal Singh
2009-12-07 11:28         ` Artem Bityutskiy
2009-12-17  9:41           ` Vimal Singh
2010-01-06 13:48             ` [PATCH - V2] " Vimal Singh
2010-01-13  8:40               ` Artem Bityutskiy
2010-01-13  9:25                 ` Vimal Singh
2010-02-26 12:47                   ` David Woodhouse [this message]
2010-03-02  4:55                     ` Vimal Singh
2010-01-07  6:53             ` [RFC][PATCH] " Artem Bityutskiy

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=1267188460.30247.10811.camel@macbook.infradead.org \
    --to=dwmw2@infradead.org \
    --cc=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=vimal.newwork@gmail.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