[PATCH 2/2 v2] mtd/nand: Add ONFI support for FSL NAND controller
Liu Shengzhou-B36685
B36685 at freescale.com
Thu Dec 8 14:06:14 EST 2011
Best Regards,
Shengzhou Liu
> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Thursday, December 08, 2011 1:16 AM
> To: Liu Shengzhou-B36685
> Cc: Wood Scott-B07421; linuxppc-dev at lists.ozlabs.org; linux-
> mtd at lists.infradead.org; dwmw2 at infradead.org; Gala Kumar-B11780
> Subject: Re: [PATCH 2/2 v2] mtd/nand: Add ONFI support for FSL NAND
> controller
>
> On 12/06/2011 09:16 PM, Liu Shengzhou-B36685 wrote:
> >>> + out_be32(&lbc->fbcr, 8);
> >>> + elbc_fcm_ctrl->read_bytes = 8;
> >>> + } else {
> >>> + out_be32(&lbc->fbcr, 256);
> >>> + elbc_fcm_ctrl->read_bytes = 256;
> >>> + }
> >>
> >> Any harm in always using 256?
> >>
> >> -Scott
> > [Shengzhou] For NAND_CMD_READID command, the total bytes of entire ID
> string are 8, there are not 256 bytes so many, it's unnecessary and looks
> not so well logically to always using 256, though it works.
>
> It's not performance critical, and always using 256 keeps things simpler,
> and more robust if the length of the ID string grows in the future (we
> used to assume it was 5 bytes...).
>
> -Scott
[Shengzhou] OK.
More information about the Linuxppc-dev
mailing list