summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-10-16 11:51:54 +0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-10-16 17:57:06 +0200
commit414864d765e1431d3ba79051404a1f6e423fc145 (patch)
treea299c84cb13389c29725e017a7e95fa180d67cf2 /drivers/mtd
parentmtd: nand: omap2: Do not assign omap_nand_info to platform drvdata (diff)
downloadlinux-414864d765e1431d3ba79051404a1f6e423fc145.tar.xz
linux-414864d765e1431d3ba79051404a1f6e423fc145.zip
mtd: nand: mxc: lower ECC failed message priority to debug level
Having bad ECC is a normal case for NAND, do not spam log with the message. Users like UBI will print a message anyway which is more useful since it contains the PEB number that has bad ECC. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/mxc_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index bacdd04e765b..04d31aff43c5 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -634,7 +634,7 @@ static int mxc_nand_correct_data_v2_v3(struct mtd_info *mtd, u_char *dat,
do {
err = ecc_stat & ecc_bit_mask;
if (err > err_limit) {
- printk(KERN_WARNING "UnCorrectable RS-ECC Error\n");
+ dev_dbg(host->dev, "UnCorrectable RS-ECC Error\n");
return -EBADMSG;
} else {
ret += err;