[PATCH] Fix of broken state in CFI driver caused by FL_SHUTDOWN

Alexey Korolev akorolev at infradead.org
Thu Apr 10 12:57:08 EDT 2008


Hi, 

> > >  CFI driver in 2.6.24 kernel is broken. Not so intensive read/write operations cause incomplete writes
> > > which lead to kernel panics in JFFS2.
> > >  We investigated the issue - it is caused by bug in FL_SHUTDOWN parsing code. Sometimes chip returns -
> > > EIO as if it is in FL_SHUTDOWN state when it should wait in FL_PONT (error in order of conditions).
> > > 
> > > The following patch fixes the bug in state parsing code of CFI.
> > > Also I've added comments to notify developers if they want to add new case in future.
> > > Please include it.
> > > 
> > > Signed-off-by: Alexey Korolev <akorolev at infradead.org>
> > > Reviewed-By: Joern Engel <joern at logfs.org>
> > 
> > Acked-By: Joakim Tjernlund <Joakim.Tjenrlund at transmode.se>
> > 
> > Guys, I think you should sent this directly to Linus as David seems
> > unavailable ATM. It should really go into 2.6.25
> 
> It is already in mainline.  See commit fb6d080c.
> 
Excelent, thank you very much!

> Nicolas
> 



More information about the linux-mtd mailing list