提交 c1317f71 编写于 作者: S Scott Wood 提交者: David Woodhouse

mtd: eLBC NAND: give more verbose output on error

We want error information even if the kernel hasn't been built for verbose
debugging.
Signed-off-by: NScott Wood <scottwood@freescale.com>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 476459a6
...@@ -237,12 +237,15 @@ static int fsl_elbc_run_command(struct mtd_info *mtd) ...@@ -237,12 +237,15 @@ static int fsl_elbc_run_command(struct mtd_info *mtd)
ctrl->use_mdr = 0; ctrl->use_mdr = 0;
dev_vdbg(ctrl->dev, if (ctrl->status != LTESR_CC) {
"fsl_elbc_run_command: stat=%08x mdr=%08x fmr=%08x\n", dev_info(ctrl->dev,
ctrl->status, ctrl->mdr, in_be32(&lbc->fmr)); "command failed: fir %x fcr %x status %x mdr %x\n",
in_be32(&lbc->fir), in_be32(&lbc->fcr),
ctrl->status, ctrl->mdr);
return -EIO;
}
/* returns 0 on success otherwise non-zero) */ return 0;
return ctrl->status == LTESR_CC ? 0 : -EIO;
} }
static void fsl_elbc_do_read(struct nand_chip *chip, int oob) static void fsl_elbc_do_read(struct nand_chip *chip, int oob)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册