lkml.org 
[lkml]   [2011]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip
From
Date
On Tue, 2011-11-15 at 17:29 +0800, b35362@freescale.com wrote:
> + /*
> + * Freescale FCM controller has a 2K size limitation of buffer
> + * RAM, so elbc_fcm_ctrl->buffer have to be used if writesize
> + * of chip is greater than 2048.
> + * We malloc a large enough buffer at this point, because we
> + * don't know writesize before calling nand_scan(). We will
> + * re-malloc later if needed.
> + */
> + elbc_fcm_ctrl->buffer = kmalloc(4096 * 6, GFP_KERNEL);
> + if (!elbc_fcm_ctrl->buffer)
> + return -ENOMEM;

Why 4096*6? Judging from the comment it should be 4096.

Artem.



\
 
 \ /
  Last update: 2011-11-22 22:07    [W:0.132 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site