projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
582f115
)
MLK-22556-3 mtd: nand-spi: Print NAND flash device ID
author
Ye Li
<ye.li@nxp.com>
Wed, 28 Aug 2019 05:30:39 +0000
(22:30 -0700)
committer
Ye Li
<ye.li@nxp.com>
Thu, 5 Sep 2019 06:11:43 +0000
(23:11 -0700)
Current print for unrecognized ID only shows the buffer address not
show its device ID. Add a print to show the ID.
Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/mtd/nand/spi/core.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/spi/core.c
b/drivers/mtd/nand/spi/core.c
index
cb8ffa3
..
980b526
100644
(file)
--- a/
drivers/mtd/nand/spi/core.c
+++ b/
drivers/mtd/nand/spi/core.c
@@
-981,6
+981,8
@@
static int spinand_detect(struct spinand_device *spinand)
if (ret) {
dev_err(dev, "unknown raw ID %*phN\n", SPINAND_MAX_ID_LEN,
spinand->id.data);
+ dev_err(dev, "0x%x, 0x%x, 0x%x, 0x%x\n",
+ spinand->id.data[0], spinand->id.data[1], spinand->id.data[2], spinand->id.data[3]);
return ret;
}