type->id != chip->read_byte(mtd))
break;
}
if (i > 1)
printk(KERN_INFO "%d NAND chips detected\n", i);
/* Store the number of chips and calc total size for mtd */
chip->numchips = i;
mtd->size = i * chip->chipsize;
return 0;
}
3、nand_scan_tail函数:源码如下:
/**
* nand_scan_tail - [NAND Interface] Scan for the NAND device
*/