public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Mikael Starvik <mikael.starvik@axis.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: NAND programming bug in Linux 2.6.8?
Date: Fri, 15 Oct 2004 13:13:10 +0200	[thread overview]
Message-ID: <1097838790.17034.63.camel@thomas> (raw)
In-Reply-To: <BFECAF9E178F144FAEF2BF4CE739C66818F58E@exmail1.se.axis.com>

On Fri, 2004-10-15 at 12:53, Mikael Starvik wrote:

> The problem is that for a 16-bit device the READ1 command will be issued
> even though the column address fits in 8 bits. Suggested patch below.

There is no problem at all.

1. As we do only full page reads, this will never happen. The READ1 code
could go away complete.

2. If you want to read the second half of the page, then it's completely
correct to issue the READ1 command, because the column address is
shifted right by 1 later. The READ1 command selects the second half of
the page whether the chip is in 8 or in 16 bit mode.

read from offset 256
command = READ1, column address = 0
it will read from offset 256

read from offset 260
command = READ1, column address = 2
it will read from offset 256 + 2*2 = 260

tglx

  reply	other threads:[~2004-10-15 11:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15 10:53 NAND programming bug in Linux 2.6.8? Mikael Starvik
2004-10-15 11:13 ` Thomas Gleixner [this message]
     [not found] <BFECAF9E178F144FAEF2BF4CE739C668018E2C8E@exmail1.se.axis.com>
2004-10-15 11:50 ` Mikael Starvik
2004-10-15 12:05   ` Thomas Gleixner

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=1097838790.17034.63.camel@thomas \
    --to=tglx@linutronix.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=mikael.starvik@axis.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