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

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to