On Fri, Dec 27, 2013 at 01:03:32PM +0000, Caizhiyong wrote: > From: Cai Zhiyong <caizhiy...@huawei.com> > Date: Fri, 27 Dec 2013 20:23:09 +0800 > Subject: [PATCH] mtd: nand: remove NAND_MAX_OOBSIZE and NAND_MAX_PAGESIZE > > remove NAND_MAX_OOBSIZE and NAND_MAX_PAGESIZE, dynamic allocate > NAND buffer after detecting NAND writesize and oobsize. > > - save memory. when use MACRO allocate static buffer, use a small > page size NAND chip, the buffer is still 8k, the memory is wasted. > > - reduce maintenance. NAND chip pagesize and oobsize update frequently, > allocate buffer according to the detecting size will reduce maintenance. > > - this fix was suggested by Brian Norris [computersforpe...@gmail.com] > and Huang Shijie [b32...@freescale.com]
I have already sent out a patch set to remove these macros several days ago. :( thanks Huang Shijie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/