]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: rawnand: brcmnand: update log level messages
authordavid regan <dregan@broadcom.com>
Wed, 13 Nov 2024 06:27:15 +0000 (22:27 -0800)
committerMichael Trimarchi <michael@amarulasolutions.com>
Tue, 26 Nov 2024 20:14:44 +0000 (21:14 +0100)
Update log level messages so that more critical messages can be logged
to console and help the troubleshooting with field devices.

This is a port of the upstream Linux patch to U-Boot.

https://lore.kernel.org/linux-mtd/20240223034758.13753-4-william.zhang@broadcom.com/

Signed-off-by: david regan <dregan@broadcom.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
Reviewed-by: Anand Gore <anand.gore@broadcom.com>
drivers/mtd/nand/raw/brcmnand/brcmnand.c

index 7fd9e1855d1e0ce727f152151c04f3e284e6c9ed..ef492e6db3206688e8af7f9afb86073d73551d2d 100644 (file)
@@ -1071,8 +1071,8 @@ static int bcmnand_ctrl_poll_status(struct brcmnand_controller *ctrl,
        if ((val & mask) == expected_val)
                return 0;
 
-       dev_warn(ctrl->dev, "timeout on status poll (expected %x got %x)\n",
-                expected_val, val & mask);
+       dev_err(ctrl->dev, "timeout on status poll (expected %x got %x)\n",
+               expected_val, val & mask);
 
        return -ETIMEDOUT;
 }
@@ -2032,7 +2032,7 @@ try_dmaread:
                                return err;
                }
 
-               dev_dbg(ctrl->dev, "uncorrectable error at 0x%llx\n",
+               dev_err(ctrl->dev, "uncorrectable error at 0x%llx\n",
                        (unsigned long long)err_addr);
                mtd->ecc_stats.failed++;
                /* NAND layer expects zero on ECC errors */