[PATCH v3 06/10] mtd: fix the wrong mtd->type for nand chip

Huang Shijie b32955 at freescale.com
Wed Aug 28 05:26:07 EDT 2013


于 2013年08月28日 15:28, Brian Norris 写道:
> There is an alternative: that we don't pass MTD_MLCNANDFLASH through 
> to user-space (we intercept it and change it to MTD_NANDFLASH in 
> ioctl(MEMGETINFO)), and it just appears as "nand" in the sysfs 'type' 
> entry. I'm not saying we should do that--I think it's useful to know 
> SLC vs. MLC in user-space--but I am saying that we need a proper 
> justification. So far I'm the only one who has explained why 
> user-space needs this... 
There is another issue if we hack the ioctl(MEMGETINFO):
      The "flash_eraseall --jffs2" can writes the marker even it is a 
MLC nand, since the flash_eraseall
regards the MLC as the SLC.

thanks
Huang Shijie




More information about the linux-mtd mailing list