[PATCH v3 09/10] mtd: add a helper to detect the nand type

Brian Norris computersforpeace at gmail.com
Mon Sep 16 20:27:15 EDT 2013


On Mon, Aug 26, 2013 at 05:36:47PM +0800, Huang Shijie wrote:
> This helper detects that whether the mtd's type is nand type.
> 
> Now, it's clear that the MTD_NANDFLASH stands for SLC nand only.
> So use the mtd_type_is_nand() to replace the old check method
> to do the nand type (include the SLC and MLC) check.
> 
> Signed-off-by: Huang Shijie <b32955 at freescale.com>

This patch also needs to be placed ahead of the patch that allows
nand_base.c to use MTD_MLCNANDFLASH. Otherwise there's a (temporary)
breakage between the time nand_base.c uses MLCNANDFLASH and the time
this patch is introduced.

Brian



More information about the linux-mtd mailing list