From patchwork Thu Jan 20 16:17:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Holger Brunck X-Patchwork-Id: 79716 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id AB38FB70E4 for ; Fri, 21 Jan 2011 03:17:41 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 486252814B; Thu, 20 Jan 2011 17:17:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9+QjopbUYsJd; Thu, 20 Jan 2011 17:17:35 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E80F42814E; Thu, 20 Jan 2011 17:17:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5E11A28137 for ; Thu, 20 Jan 2011 17:17:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PEu9nADH9MUh for ; Thu, 20 Jan 2011 17:17:23 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail.de.keymile.com (mail.de.keymile.com [195.8.104.1]) by theia.denx.de (Postfix) with SMTP id C40C728125 for ; Thu, 20 Jan 2011 17:17:18 +0100 (CET) Received: from mailrelay.de.keymile.net ([10.9.1.54]) by eSafe SMTP Relay 1291979143; Thu, 20 Jan 2011 16:59:37 +0100 Received: from localhost.localdomain (chber1-10403x.ch.keymile.net [172.31.31.43]) by mailrelay.de.keymile.net (8.12.2/8.12.2) with ESMTP id p0KGCR09012881; Thu, 20 Jan 2011 17:12:33 +0100 (MET) From: Holger Brunck To: u-boot@lists.denx.de Date: Thu, 20 Jan 2011 17:17:03 +0100 Message-Id: <1295540225-11083-4-git-send-email-holger.brunck@keymile.com> X-Mailer: git-send-email 1.7.0.5 In-Reply-To: <1295540225-11083-1-git-send-email-holger.brunck@keymile.com> References: <1295540225-11083-1-git-send-email-holger.brunck@keymile.com> X-ESAFE-STATUS: Mail allowed X-ESAFE-DETAILS: Cc: Holger Brunck Subject: [U-Boot] [PATCH 4/6] mtd, onenand: add mtd writebufsize initialization X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Initialize mtd->writebufsize to be equal to mtd->writesize. Signed-off-by: Holger Brunck --- drivers/mtd/onenand/onenand_base.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 24e02c2..8881672 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -2623,6 +2623,7 @@ static int onenand_probe(struct mtd_info *mtd) mtd->sync = onenand_sync; mtd->block_isbad = onenand_block_isbad; mtd->block_markbad = onenand_block_markbad; + mtd->writebufsize = mtd->writesize; return 0; }