* [PATCH] MTD: OneNAND: fix error print
@ 2007-09-20 14:28 Artem Bityutskiy
2007-09-21 15:32 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Artem Bityutskiy @ 2007-09-20 14:28 UTC (permalink / raw)
To: David Woodhouse; +Cc: Kyungmin Park, linux-mtd@lists.infradead.org
From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Date: Thu, 20 Sep 2007 19:14:50 +0300
Subject: [PATCH] MTD: OneNAND: fix error print
Do not scare people if a correctable ECC error was detected.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
drivers/mtd/onenand/onenand_base.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 0537fac..960863a 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -318,12 +318,14 @@ static int onenand_wait(struct mtd_info *mtd, int state)
if (interrupt & ONENAND_INT_READ) {
int ecc = this->read_word(this->base + ONENAND_REG_ECC_STATUS);
if (ecc) {
- printk(KERN_ERR "onenand_wait: ECC error = 0x%04x\n", ecc);
if (ecc & ONENAND_ECC_2BIT_ALL) {
+ printk(KERN_ERR "onenand_wait: ECC error = 0x%04x\n", ecc);
mtd->ecc_stats.failed++;
return ecc;
- } else if (ecc & ONENAND_ECC_1BIT_ALL)
+ } else if (ecc & ONENAND_ECC_1BIT_ALL) {
+ printk(KERN_NOTICE "onenand_wait: correctable ECC error = 0x%04x\n", ecc);
mtd->ecc_stats.corrected++;
+ }
}
} else if (state == FL_READING) {
printk(KERN_ERR "onenand_wait: read timeout! ctrl=0x%04x intr=0x%04x\n", ctrl, interrupt);
--
1.5.0.6
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] MTD: OneNAND: fix error print
2007-09-20 14:28 [PATCH] MTD: OneNAND: fix error print Artem Bityutskiy
@ 2007-09-21 15:32 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2007-09-21 15:32 UTC (permalink / raw)
To: David Woodhouse; +Cc: Kyungmin Park, linux-mtd@lists.infradead.org
On Thu, 2007-09-20 at 17:28 +0300, Artem Bityutskiy wrote:
> From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
> Date: Thu, 20 Sep 2007 19:14:50 +0300
> Subject: [PATCH] MTD: OneNAND: fix error print
>
> Do not scare people if a correctable ECC error was detected.
>
> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This patch is included at "[PATCH try 2] MTD: OneNAND: fix numerous
races", please, use that one instead.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-21 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20 14:28 [PATCH] MTD: OneNAND: fix error print Artem Bityutskiy
2007-09-21 15:32 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox