All of lore.kernel.org
 help / color / mirror / Atom feed
* Regarding latest EUCLEAN/bitflip_threshold patchset
@ 2012-05-09 10:26 Shmulik Ladkani
  2012-05-11 11:51 ` Artem Bityutskiy
  0 siblings, 1 reply; 8+ messages in thread
From: Shmulik Ladkani @ 2012-05-09 10:26 UTC (permalink / raw)
  To: Mike Dunn; +Cc: linux-mtd, dedekind1

Hi Mike,

I noticed 'nand_do_read_oob' explicitly tests 'mtd->ecc_stats.corrected'
and returns EUCLEAN - as it was not ported to use the new
'bitflip_threshold'.

From nand_base.c:

	if (mtd->ecc_stats.failed - stats.failed)
		return -EBADMSG;

	return  mtd->ecc_stats.corrected - stats.corrected ? -EUCLEAN : 0;

- May drivers increment mtd->ecc_stats.{corrected,failed} during their
  ecc.read_oob() call?

- If so, can we (should we?) report EUCLEAN according to the
  bitflip_threshold in this case?

Regards,
Shmulik

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

end of thread, other threads:[~2012-05-17  9:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-09 10:26 Regarding latest EUCLEAN/bitflip_threshold patchset Shmulik Ladkani
2012-05-11 11:51 ` Artem Bityutskiy
2012-05-12 18:37   ` Mike Dunn
2012-05-12 20:13     ` Shmulik Ladkani
2012-05-16  6:49       ` Brian Norris
2012-05-16 18:09         ` Mike Dunn
2012-05-17  9:22           ` Shmulik Ladkani
2012-05-14 19:28     ` Mike Dunn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.