Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MTD] [NAND] pxa3xx_nand: added warning which tells id of detected NAND

Minor patch to help debugging of NAND detection.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Enrico Scholz and committed by
David Woodhouse
2675e944 c8c17c88

+4 -1
+4 -1
drivers/mtd/nand/pxa3xx_nand.c
··· 924 924 const struct pxa3xx_nand_platform_data *pdata) 925 925 { 926 926 const struct pxa3xx_nand_flash *f; 927 - uint32_t id; 927 + uint32_t id = -1; 928 928 int i; 929 929 930 930 for (i = 0; i<pdata->num_flash; ++i) { ··· 956 956 } 957 957 #endif 958 958 959 + dev_warn(&info->pdev->dev, 960 + "failed to detect configured nand flash; found %04x instead of\n", 961 + id); 959 962 return -ENODEV; 960 963 } 961 964