]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
mtd: nand: mxc: lower ECC failed message priority to debug level
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 16 Oct 2017 09:51:54 +0000 (11:51 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 16 Oct 2017 15:57:06 +0000 (17:57 +0200)
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>
drivers/mtd/nand/mxc_nand.c

index bacdd04e765bc49121b0e5d92822ee159d9fb9d3..04d31aff43c5aa0a5bfee508d29d718176305766 100644 (file)
@@ -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;