[PATCH] mtd: nand: remove NAND_MAX_OOBSIZE and NAND_MAX_PAGESIZE

Huang Shijie shijie8 at gmail.com
Fri Dec 27 10:07:24 EST 2013


On Fri, Dec 27, 2013 at 01:03:32PM +0000, Caizhiyong wrote:
> From: Cai Zhiyong <caizhiyong at 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 [computersforpeace at gmail.com]
>                          and Huang Shijie [b32955 at freescale.com]

I have already sent out a patch set to remove these macros several days ago. :(


thanks
Huang Shijie



More information about the linux-mtd mailing list