public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Chen Gong <g.chen@freescale.com>, linux-mtd@lists.infradead.org
Subject: Re: goofy mtd m25p80 patches in GIT ...
Date: Mon, 20 Oct 2008 01:04:17 -0700	[thread overview]
Message-ID: <200810200104.18112.david-b@pacbell.net> (raw)
In-Reply-To: <1224488403.6770.1517.camel@macbook.infradead.org>

On Monday 20 October 2008, David Woodhouse wrote:
> On Sun, 2008-10-19 at 15:35 -0700, David Brownell wrote:
> > [resend cc'ing linux-mtd, sorry]
> > 
> > I noticed a couple goofy patches in MTD GIT, while poking around
> > wondering what happened to some patches that I expected would
> > already have gotten upstream.  Details below.
> 
> Did you find the patches you expected to be going upstream?

Yes, sorry to have not made that explicit.
The were the mtd_dataflash.c patches.

(And I'm hoping we'll see an MTD "pull" request
for 2.6.28-rc0 ... )


> 
> > First:
> > 
> >  http://git.kernel.org/?p=linux/kernel/git/dwmw2/mtd-2.6.git;a=commitdiff;h=faff37508a104e9ec5285d5adecaab7e8dde472a
> > 
> > That patch is goofy because the command in question is *NOT* a block
> > erase command.  It's a chip-erase command ... entirely unlike the
> > existing *real* block erase commands used in the driver.
> > 
> > Could we get a fix that provides the correct name for the operations?
> > Having real block commands, and this new thing, is at the very least
> > confusing...
> 
> Makes sense. Chen Gong?
> 
> > 
> > Second:
> > 
> >  http://git.kernel.org/?p=linux/kernel/git/dwmw2/mtd-2.6.git;a=commitdiff;h=75d0ee2202b5740e94e913d8a52f91c6557c4c81
> > 
> > That's just plain wrong ... the original code is correct, but the
> > patch changed it to be incorrect.  (DMA from the stack is never
> > legal.)
> 
> Ah, so spi_write() uses DMA, but spi_write_then_read() does not? 
> Not entirely intuitive :)

Maybe not ... but documented.
(More info in response to Chen Gong.)


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

  parent reply	other threads:[~2008-10-20  8:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-19 22:35 goofy mtd m25p80 patches in GIT David Brownell
2008-10-20  7:32 ` Chen Gong-B11801
2008-10-20  8:21   ` David Brownell
2008-10-20  7:40 ` David Woodhouse
2008-10-20  7:42   ` Chen Gong-B11801
2008-10-20  7:44     ` David Woodhouse
2008-10-20  7:56       ` Chen Gong-B11801
2008-10-20  8:02         ` David Woodhouse
2008-10-20  8:16           ` Chen Gong-B11801
2008-10-20  8:30             ` David Brownell
2008-10-20  8:37               ` Chen Gong-B11801
2008-10-20  8:24           ` David Brownell
2008-10-20  8:04   ` David Brownell [this message]
2008-10-20  8:12     ` 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=200810200104.18112.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=dwmw2@infradead.org \
    --cc=g.chen@freescale.com \
    --cc=linux-mtd@lists.infradead.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