From patchwork Thu Feb 12 11:06:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 439161 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B333E14017E for ; Thu, 12 Feb 2015 22:09:55 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YLrcz-0005Yp-23; Thu, 12 Feb 2015 11:08:13 +0000 Received: from guitar.tcltek.co.il ([192.115.133.116] helo=mx.tkos.co.il) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YLrcq-0005O1-Jm for linux-mtd@lists.infradead.org; Thu, 12 Feb 2015 11:08:07 +0000 Received: from tarshish.tkos.co.il (unknown [10.0.8.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPSA id 987DC44046E; Thu, 12 Feb 2015 13:07:40 +0200 (IST) From: Baruch Siach To: David Woodhouse , Brian Norris Subject: [PATCH] mtd: nand: increase tWB to 200ns Date: Thu, 12 Feb 2015 13:06:22 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150212_030804_931969_8514ED46 X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- Cc: Baruch Siach , linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org ONFI spec (version 4.0, ยง4.18.1) sets tWB to max 200ns for SDR mode 0. Signed-off-by: Baruch Siach --- drivers/mtd/nand/nand_base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 31e252a5ce9c..ebb7749247d5 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -662,7 +662,7 @@ static void nand_command(struct mtd_info *mtd, unsigned int command, * Apply this short delay always to ensure that we do wait tWB in * any case on any machine. */ - ndelay(100); + ndelay(200); nand_wait_ready(mtd); } @@ -774,7 +774,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command, * Apply this short delay always to ensure that we do wait tWB in * any case on any machine. */ - ndelay(100); + ndelay(200); nand_wait_ready(mtd); } @@ -883,7 +883,7 @@ static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip) * Apply this short delay always to ensure that we do wait tWB in any * case on any machine. */ - ndelay(100); + ndelay(200); chip->cmdfunc(mtd, NAND_CMD_STATUS, -1, -1);