onenand_wait and onenane_read

Adrian Hunter hunter.programmer at gmail.com
Thu Dec 28 04:27:34 EST 2006


Hi

onenand_wait does not return an error if there is an ecc failure i.e.

ecc & ONENAND_ECC_2BIT_ALL

but onenand_read still marks the bufferRAM as valid i.e.

ret = this->wait(mtd, FL_READING);
/* First copy data and check return value for ECC handling */
onenand_update_bufferram(mtd, from, !ret);

This looks wrong to me.  I think onenand_wait should return an error
if there is an ecc failure.

Can you comment on this?

Regards
Adrian




More information about the linux-mtd mailing list