From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Wed, 05 Nov 2014 08:00:21 +0100 Subject: [U-Boot] [PATCH 2/2] mtd: nor: initialize writebufsize field In-Reply-To: <1415117278-1255-2-git-send-email-andrew.ruder@elecsyscorp.com> References: <1415117278-1255-1-git-send-email-andrew.ruder@elecsyscorp.com> <1415117278-1255-2-git-send-email-andrew.ruder@elecsyscorp.com> Message-ID: <5459CB05.5060405@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Andrew, Am 04.11.2014 17:07, schrieb Andrew Ruder: > UBI drivers error out if writebufsize is not filled in correctly. Grab > this information from the CFI flash_info struct. > > Signed-off-by: Andrew Ruder > Cc: Wolfgang Denk > Cc: Heiko Schocher > Cc: Stefan Roese > --- > drivers/mtd/cfi_mtd.c | 1 + > 1 file changed, 1 insertion(+) Patch already posted on the ML, see [1] If this Patch works for you, could you send an "Acked-by" for it? > > diff --git a/drivers/mtd/cfi_mtd.c b/drivers/mtd/cfi_mtd.c > index ac805ff..d4c9609 100644 > --- a/drivers/mtd/cfi_mtd.c > +++ b/drivers/mtd/cfi_mtd.c > @@ -226,6 +226,7 @@ int cfi_mtd_init(void) > mtd->flags = MTD_CAP_NORFLASH; > mtd->size = fi->size; > mtd->writesize = 1; > + mtd->writebufsize = fi->buffer_size; ^ should be cfi This is a typo ... your patch would not compile ... please just ack the patch [1], thanks! bye, Heiko [1] Patchwork [U-Boot,v2] mtd, cfi, ubi: add missing writebufsize initialization http://patchwork.ozlabs.org/patch/405260/ -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany