From d91cd1ac780b9b76f9c4a81523cc8c4df2508401 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Tue, 27 Aug 2019 22:30:39 -0700 Subject: [PATCH] MLK-22556-3 mtd: nand-spi: Print NAND flash device ID 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 --- drivers/mtd/nand/spi/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index cb8ffa3fa9..980b526fe4 100644 --- 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; } -- 2.17.1