public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* nand driver bug?
@ 2004-04-14 15:32 Dmitry Konyshev
  2004-04-14 15:44 ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Konyshev @ 2004-04-14 15:32 UTC (permalink / raw)
  To: linux-mtd

Hi everybody,

    The driver happens to fall in BUG in nand_select_chip when writing 
the last page of a device. It's trying to select_chip in nand_write_ecc 
even in case there's nothing left to write.

wbr, Dmitry.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nand driver bug?
  2004-04-14 15:32 nand driver bug? Dmitry Konyshev
@ 2004-04-14 15:44 ` Thomas Gleixner
  2004-04-15  7:49   ` Dmitry Konyshev
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2004-04-14 15:44 UTC (permalink / raw)
  To: Dmitry Konyshev, linux-mtd

On Wednesday 14 April 2004 17:32, Dmitry Konyshev wrote:
> Hi everybody,
>
>     The driver happens to fall in BUG in nand_select_chip when writing
> the last page of a device. It's trying to select_chip in nand_write_ecc
> even in case there's nothing left to write.

Yep, you're right. I noticed this already and fixed it, but did not yet commit 
it, as I changed a lot of other things.
Should be fixed until tomorrow morning

-- 
Thomas
________________________________________________________________________
"Free software" is a matter of liberty, not price. To understand the concept,
you should think of "free" as in "free speech,'' not as in "free beer".
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nand driver bug?
  2004-04-14 15:44 ` Thomas Gleixner
@ 2004-04-15  7:49   ` Dmitry Konyshev
  2004-04-15  7:56     ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Konyshev @ 2004-04-15  7:49 UTC (permalink / raw)
  To: tglx; +Cc: linux-mtd

Thomas Gleixner wrote:

>>    The driver happens to fall in BUG in nand_select_chip when writing
>>the last page of a device. It's trying to select_chip in nand_write_ecc
>>even in case there's nothing left to write.
>>    
>>
>
>Yep, you're right. I noticed this already and fixed it, but did not yet commit 
>it, as I changed a lot of other things.
>Should be fixed until tomorrow morning
>
>  
>
Any changes should be done in boards' drivers? Fresh CVS version oopses 
in nand_scan.

wbr, Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nand driver bug?
  2004-04-15  7:49   ` Dmitry Konyshev
@ 2004-04-15  7:56     ` Thomas Gleixner
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2004-04-15  7:56 UTC (permalink / raw)
  To: Dmitry Konyshev; +Cc: linux-mtd

On Thursday 15 April 2004 09:49, Dmitry Konyshev wrote:
> Thomas Gleixner wrote:
> >>    The driver happens to fall in BUG in nand_select_chip when writing
> >>the last page of a device. It's trying to select_chip in nand_write_ecc
> >>even in case there's nothing left to write.
> >
> >Yep, you're right. I noticed this already and fixed it, but did not yet
> > commit it, as I changed a lot of other things.
> >Should be fixed until tomorrow morning
>
> Any changes should be done in boards' drivers? Fresh CVS version oopses
> in nand_scan.

Yep. I'm writing a short summary at the moment. 
Please check the changes in autcpu12.c

We need one additional buffer. The size is oobsize * pages per block, e.g.
blocksize 16384
pagesize 512
= 32 pages per block
* 16 byte oob
= 512 byte buffer
The pointer must be set before calling nand_scan


-- 
Thomas
________________________________________________________________________
"Free software" is a matter of liberty, not price. To understand the concept,
you should think of "free" as in "free speech,'' not as in "free beer".
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-15  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-14 15:32 nand driver bug? Dmitry Konyshev
2004-04-14 15:44 ` Thomas Gleixner
2004-04-15  7:49   ` Dmitry Konyshev
2004-04-15  7:56     ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox