MLK-22556-3 mtd: nand-spi: Print NAND flash device ID
authorYe Li <ye.li@nxp.com>
Wed, 28 Aug 2019 05:30:39 +0000 (22:30 -0700)
committerYe 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

index cb8ffa3..980b526 100644 (file)
@@ -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;
        }