summaryrefslogtreecommitdiff
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-09-25 06:58:21 (GMT)
committerBrian Norris <computersforpeace@gmail.com>2013-10-27 23:27:07 (GMT)
commit963d1c285fdf3b9ce93b575b879c1cba4a23d958 (patch)
tree14424b95921931ac72baed2e4f50121ff6ab8e09 /drivers/mtd/maps
parente104f1e9dab6726187810f5d9e06cadb946d4a61 (diff)
downloadlinux-963d1c285fdf3b9ce93b575b879c1cba4a23d958.tar.xz
mtd: nand: fix the wrong mtd->type for nand chip
Current code sets the mtd->type with MTD_NANDFLASH for both SLC and MLC. So the jffs2 may supports the MLC nand, but in actually, the jffs2 should not support the MLC. This patch uses the nand_is_slc() to check the nand cell type, and set the mtd->type with the right nand type. After this patch, the jffs2 only supports the SLC nand. The side-effect of this patch: Before this patch, the ioctl(MEMGETINFO) can only return with the MTD_NANDFLASH; but after this patch, the ioctl(MEMGETINFO) will return with the MTD_NANDFLASH for SLC, and MTD_MLCNANDFLASH for MLC. So the user applictions(such as mtd-utils) should also changes a little for this. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/maps')
0 files changed, 0 insertions, 0 deletions