using multile partitions on one NAND chip
Hi,
anyone tried using multiple partitions on a NAND flash?
I can't find the protection mechanism that protects lets say an erase on one block against a read command on the other block. In my case I am using 2 YAFFS patitions and 1 partition that fakes a read-only NOR flash using the nand_read_ecc() function (mtd->read_ecc()). I'm not shure if there is an efficient protection for this. It looks like nand_chip->chip_lock should do this job but it only protects parts of the erase loop agains parts of the nand_chip->waitfunc() wait loop. It does not keep nand_chip->cmdfunc() from sending a command while an erase command is still active in the nand chip.
Thanks, Stephan
Quoted 1 line · Stephan Linke
Hi,
Please fix your mail client, to 80 characters per line. Read http://david.woodhou.se/email.html
Quoted 1 line
anyone tried using multiple partitions on a NAND flash?
Ever looked into the various drivers in drivers/mtd/nand ?
Quoted 3 lines
I can't find the protection mechanism that protects lets say an erase on one block against a read command on the other block.
nand_get_chip() contains the protection.
Quoted 2 lines
efficient protection for this. It looks like
nand_chip->chip_lockshould do this job but it only protects
chip_lock is only for SMP and the lock/unlock macros contain the preemption control if CONFIG_PREEMPT=y. The lock itself is a NOOP on UP systems
tglx