All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: onenand: use KERN_DEBUG for ECC errors
@ 2009-08-31  7:03 Artem Bityutskiy
  2009-08-31  7:15 ` Kyungmin Park
  0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2009-08-31  7:03 UTC (permalink / raw)
  To: linux-mtd; +Cc: Kyungmin Park, Adrian Hunter

From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

ECC errors is a normal phenomena on OneNAND and they happen quite
often. Flash-aware file-systems like JFFS2 or UBIFS are able to
handle them gracefully.

Currently OneNAND driver prints about ECC errors like this:
onenand_bbt_wait: ecc error = 0x2222, controller error 0x2400
onenand_bbt_wait: ecc error = 0x2222, controller error 0x2400
onenand_bbt_wait: ecc error = 0x2222, controller error 0x2400

These messages are scary and make users think that something serious
happened. However, they are handled nicely by UBIFS.

This patch makes this messages to be printed with KERN_DEBUG
level, so that they would not go to the console, at least, which
is currently happening in case of standard default setup.

Indeed, since ECC errors are supposed to be handled by upper
level SW, we do not really have to print these messages, and we
may consider them as debugging prints.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
 drivers/mtd/onenand/onenand_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 6e82909..994939e 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1450,7 +1450,7 @@ static int onenand_bbt_wait(struct mtd_info *mtd, int state)
 	if (interrupt & ONENAND_INT_READ) {
 		int ecc = onenand_read_ecc(this);
 		if (ecc & ONENAND_ECC_2BIT_ALL) {
-			printk(KERN_INFO "onenand_bbt_wait: ecc error = 0x%04x"
+			printk(KERN_DEBUG "onenand_bbt_wait: ecc error = 0x%04x"
 				", controller error 0x%04x\n", ecc, ctrl);
 			return ONENAND_BBT_READ_ECC_ERROR;
 		}
-- 
1.6.2.5

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

end of thread, other threads:[~2009-08-31  7:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-31  7:03 [PATCH] mtd: onenand: use KERN_DEBUG for ECC errors Artem Bityutskiy
2009-08-31  7:15 ` Kyungmin Park
2009-08-31  7:21   ` Artem Bityutskiy

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.