[PATCH v2 2/6] mtd: cfi: add writebufsize initialization
Anatolij Gustschin
agust at denx.de
Thu Jan 6 05:49:48 EST 2011
Hi,
On Tue, 21 Dec 2010 16:45:24 +0200
Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> On Mon, 2010-12-20 at 17:36 +0100, ext Guillaume LECERF wrote:
> > Hello.
> >
> > 2010/12/16 Anatolij Gustschin <agust at denx.de>:
> > > Initialize mtd->writebufsize to the value obtained
> > > by CFI query command at probe time.
> > >
> > > Signed-off-by: Anatolij Gustschin <agust at denx.de>
> > > ---
> > > --- a/drivers/mtd/chips/cfi_cmdset_0002.c
> > > +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
> > > @@ -428,6 +428,10 @@ struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary)
> > > mtd->flags = MTD_CAP_NORFLASH;
> > > mtd->name = map->name;
> > > mtd->writesize = 1;
> > > + mtd->writebufsize = 1 << cfi->cfiq->MaxBufWriteSize;
> >
> > What about wbufsize initialized in cfi_amdstd_write_buffers() to
> > "cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize" ?
> > I don't know this piece of code, but I just wanted to point it to you.
>
> Yes, fair question, Anatolij?
Just answered it.
Thanks,
Anatolij
More information about the linux-mtd
mailing list