From patchwork Wed Jun 1 13:56:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Pinkava X-Patchwork-Id: 98189 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 85079B6F84 for ; Wed, 1 Jun 2011 23:59:02 +1000 (EST) Received: from canuck.infradead.org ([134.117.69.58]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QRlvL-00069I-2j; Wed, 01 Jun 2011 13:57:27 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QRlvK-0004ib-LX; Wed, 01 Jun 2011 13:57:26 +0000 Received: from ns.vscht.cz ([2001:718:3:15::5]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QRlvG-0004iI-Jl for linux-mtd@lists.infradead.org; Wed, 01 Jun 2011 13:57:23 +0000 Received: from SMTPgw.vscht.cz (smtpgw.vscht.cz [147.33.10.26]) by ns.vscht.cz (8.13.8/8.13.8) with ESMTP id p51DvDXl007586; Wed, 1 Jun 2011 15:57:13 +0200 Received: from S1117-pinky.jm.vscht.cz (147.33.239.181) by smtp.vscht.cz (147.33.10.110) with Microsoft SMTP Server id 8.3.159.2; Wed, 1 Jun 2011 15:57:13 +0200 From: To: Subject: [PATCH] nand: Remove meaningless delay from nand_unlock Date: Wed, 1 Jun 2011 15:56:40 +0200 Message-ID: <1306936600-28870-1-git-send-email-jiri.pinkava@vscht.cz> X-Mailer: git-send-email 1.7.5.2 MIME-Version: 1.0 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110601_095723_168704_5DB5C1AF X-CRM114-Status: GOOD ( 11.22 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: linux-mtd@lists.infradead.org, Jiri Pinkava , dwmw2@infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Jiri Pinkava This delay is meaningless. If delay is needed it is device specific and must be reimplemented by specific driver, otherwise no delay is needed. This function is not used by any current kernel code, affects only external code (like main). Signed-off-by: Jiri Pinkava Acked-by: Vimal Singh --- drivers/mtd/nand/nand_base.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index a46e9bb..290a1db 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -919,7 +919,6 @@ static int __nand_unlock(struct mtd_info *mtd, loff_t ofs, /* Call wait ready function */ status = chip->waitfunc(mtd, chip); - udelay(1000); /* See if device thinks it succeeded */ if (status & 0x01) { DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n", @@ -1028,7 +1027,6 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) /* Call wait ready function */ status = chip->waitfunc(mtd, chip); - udelay(1000); /* See if device thinks it succeeded */ if (status & 0x01) { DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n",