Commit 5542164b authored by David Regan's avatar David Regan Committed by Miquel Raynal

mtd: rawnand: brcmnand: update log level messages

Update log level messages so that more critical messages can be logged
to console and help the troubleshooting with field devices.
Signed-off-by: default avatarDavid Regan <dregan@broadcom.com>
Signed-off-by: default avatarWilliam Zhang <william.zhang@broadcom.com>
Reviewed-by: default avatarWilliam Zhang <william.zhang@broadcom.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240223034758.13753-4-william.zhang@broadcom.com
parent 8e6070e5
...@@ -1084,7 +1084,7 @@ static int bcmnand_ctrl_poll_status(struct brcmnand_host *host, ...@@ -1084,7 +1084,7 @@ static int bcmnand_ctrl_poll_status(struct brcmnand_host *host,
if ((val & mask) == expected_val) if ((val & mask) == expected_val)
return 0; return 0;
dev_warn(ctrl->dev, "timeout on status poll (expected %x got %x)\n", dev_err(ctrl->dev, "timeout on status poll (expected %x got %x)\n",
expected_val, val & mask); expected_val, val & mask);
return -ETIMEDOUT; return -ETIMEDOUT;
...@@ -2137,7 +2137,7 @@ static int brcmnand_read(struct mtd_info *mtd, struct nand_chip *chip, ...@@ -2137,7 +2137,7 @@ static int brcmnand_read(struct mtd_info *mtd, struct nand_chip *chip,
return err; 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); (unsigned long long)err_addr);
mtd->ecc_stats.failed++; mtd->ecc_stats.failed++;
/* NAND layer expects zero on ECC errors */ /* NAND layer expects zero on ECC errors */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment