linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* should nand driver create ECC for a page after ERASE cmd?
@ 2014-12-20  8:42 Oleksij Rempel
  2014-12-21  1:46 ` Ezequiel Garcia
  2014-12-21 16:28 ` Boris Brezillon
  0 siblings, 2 replies; 8+ messages in thread
From: Oleksij Rempel @ 2014-12-20  8:42 UTC (permalink / raw)
  To: linux-mtd,
	boris.brezillon@free-electrons.com >> Boris Brezillon,
	computersforpeace

[-- Attachment #1: Type: text/plain, Size: 864 bytes --]

Hello all,

i'm trying to pass mtd/tests for my driver.. on pagetest i fail on this
place:
http://lxr.free-electrons.com/source/drivers/mtd/tests/pagetest.c#L311

after ERASE cmd this test trying to read same page. Driver will report
ECC error on read, because erased page has no ECC data in OOB.

What is correct way to handle it?

Right now i think about fallowing scenarios:
- nand should write page filled with 0xFFs, to generate ECC. (i think it
is wrong)
- nand should check if ECC == 0xFF.. and return other error number. (not
really good)
- write some oob filed to mark erased page?
- other variants?

in all cases it looks like it should be task of mtd or nand layer to
send needed request and not the task of a driver.

PS: i think it is a cause of "error -74 (ECC error) during ubiattach" in
my case.

-- 
Regards,
Oleksij


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

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

end of thread, other threads:[~2014-12-23 11:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20  8:42 should nand driver create ECC for a page after ERASE cmd? Oleksij Rempel
2014-12-21  1:46 ` Ezequiel Garcia
2014-12-21 14:13   ` Oleksij Rempel
2014-12-21 16:28 ` Boris Brezillon
2014-12-21 18:44   ` Oleksij Rempel
2014-12-22 18:41     ` Brian Norris
2014-12-22 19:50       ` Oleksij Rempel
2014-12-23 11:27         ` Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).