--- zzzz-none-000/linux-4.4.271/drivers/mtd/nand/plat_nand.c 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/drivers/mtd/nand/plat_nand.c 2023-01-11 09:25:42.000000000 +0000 @@ -87,7 +87,18 @@ } /* Scan to find existence of the device */ - if (nand_scan(&data->mtd, pdata->chip.nr_chips)) { + if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips, NULL)) { + err = -ENXIO; + goto out; + } + + if (pdata->chip.chip_fixup) { + err = pdata->chip.chip_fixup(&data->mtd); + if (err) + goto out; + } + + if (nand_scan_tail(&data->mtd)) { err = -ENXIO; goto out; }