NAND programming bug in Linux 2.6.8?

Thomas Gleixner tglx at linutronix.de
Fri Oct 15 07:13:10 EDT 2004


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






More information about the linux-mtd mailing list