Subject: Re: Linuxppc-dev Digest, Vol 88, Issue 24

From: Scott Wood <[email-masked]>
Date: Fri, 9 Dec 2011 12:41:34 -0600

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