[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>
This commit is contained in:
parent
c8c17c888d
commit
2675e9447b
@ -924,7 +924,7 @@ static int pxa3xx_nand_detect_flash(struct pxa3xx_nand_info *info,
|
|||||||
const struct pxa3xx_nand_platform_data *pdata)
|
const struct pxa3xx_nand_platform_data *pdata)
|
||||||
{
|
{
|
||||||
const struct pxa3xx_nand_flash *f;
|
const struct pxa3xx_nand_flash *f;
|
||||||
uint32_t id;
|
uint32_t id = -1;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i<pdata->num_flash; ++i) {
|
for (i = 0; i<pdata->num_flash; ++i) {
|
||||||
@ -956,6 +956,9 @@ static int pxa3xx_nand_detect_flash(struct pxa3xx_nand_info *info,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
dev_warn(&info->pdev->dev,
|
||||||
|
"failed to detect configured nand flash; found %04x instead of\n",
|
||||||
|
id);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user