From patchwork Fri Jun 26 16:42:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Steven A. Falco" X-Patchwork-Id: 29199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 7B843B7083 for ; Sat, 27 Jun 2009 02:45:36 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MKEVx-0000RI-O3; Fri, 26 Jun 2009 16:43:01 +0000 Received: from mlbe2k2.cs.myharris.net ([137.237.90.89]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MKEVo-0006b3-An for linux-mtd@lists.infradead.org; Fri, 26 Jun 2009 16:42:59 +0000 Received: from mail pickup service by mlbe2k2.cs.myharris.net with Microsoft SMTPSVC; Fri, 26 Jun 2009 12:42:49 -0400 Received: from saf.cs.myharris.net ([137.237.94.251]) by mlbe2k2.cs.myharris.net with Microsoft SMTPSVC(6.0.3790.1830); Fri, 26 Jun 2009 12:42:48 -0400 Message-ID: <4A44FA87.8030807@harris.com> Date: Fri, 26 Jun 2009 12:42:47 -0400 From: "Steven A. Falco" User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: linux-mtd@lists.infradead.org Subject: [PATCH] m25p80 timeout too short for worst-case m25p16 devices X-OriginalArrivalTime: 26 Jun 2009 16:42:48.0301 (UTC) FILETIME=[237561D0:01C9F67D] X-Spam-Score: 0.0 (/) Cc: dwmw2@infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.11 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 The m25p16 data sheet from numonyx lists the worst-case bulk erase time (tBE) as 40 seconds. Signed-off-by: Steven A. Falco diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index cc6369e..e106700 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -54,7 +54,7 @@ #define SR_SRWD 0x80 /* SR write protect */ /* Define max times to check status register before we give up. */ -#define MAX_READY_WAIT_JIFFIES (10 * HZ) /* eg. M25P128 specs 6s max sector erase */ +#define MAX_READY_WAIT_JIFFIES (40 * HZ) /* M25P16 specs 40s max chip erase */ #define CMD_SIZE 4 #ifdef CONFIG_M25PXX_USE_FAST_READ