cfi_cmdset_001.c problem
David Woodhouse
dwmw2 at infradead.org
Sat Dec 1 04:54:54 EST 2001
asanochkin at Lnxw.COM said:
> I see that after write and erase operations, the current version of
> cfi_cmdset_0001.c driver can left a Flash device not in the READY
> state. If soft reboot is performed in such a situation, applications
> that use flash will behave erroneously since they expect that the
> flash is in the READY state. For instance, if the system is supposed
> to boot from flash, it will hang.
Thanks for this. One thing that concerns me is that I have a vague
recollection that Nico once drastically improved the performance of the
same driver by ripping out all the gratuitous state changes. I wonder if it
would be better to do this with a reboot notifier than by changing back to
read mode after every other operation?
Also, we need to make sure we do the right thing if the JFFS or JFFS2 GC
thread is actually in the process of writing to the flash while
machine_restart() happens on another CPU.
--
dwmw2
More information about the linux-mtd
mailing list