Linuxppc-dev Digest, Vol 88, Issue 24
Scott Wood
scottwood at freescale.com
Sat Dec 10 05:41:34 EST 2011
On 12/09/2011 03:27 AM, Liu Shengzhou-B36685 wrote:
> Before calling nand_scan_ident(), we can still use 2k FCM RAM, not need a buffer greater than 2k,
> After nand_scan_ident(), if writesize > 2048, then allocate a large buffer.
> We can do it in fsl_elbc_chip_init_tail()
> if (mtd->writesize > 2048)
> ctrl->buffer = kmalloc(mtd->writesize + mtd->oobsize, GFP_KERNEL);
As we discussed elsewhere in the thread, the buffer is a controller-wide
resource. It is not associated with any one NAND chip.
-Scott
More information about the Linuxppc-dev
mailing list