Re: [PATCH] mtd: nand: remove NAND_MAX_OOBSIZE and NAND_MAX_PAGESIZE

From: Huang Shijie
Date: Fri Dec 27 2013 - 10:07:43 EST


On Fri, Dec 27, 2013 at 01:03:32PM +0000, Caizhiyong wrote:
> From: Cai Zhiyong <caizhiyong@xxxxxxxxxx>
> 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@xxxxxxxxx]
> and Huang Shijie [b32955@xxxxxxxxxxxxx]

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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/