From patchwork Wed Mar 16 23:42:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Wood X-Patchwork-Id: 87322 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 01E47B7032 for ; Thu, 17 Mar 2011 10:58:22 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A89EE280AF; Thu, 17 Mar 2011 00:58:19 +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 jv+VrEKUx5Mo; Thu, 17 Mar 2011 00:58:19 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1453D280B5; Thu, 17 Mar 2011 00:58:17 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3E311280B5 for ; Thu, 17 Mar 2011 00:58:14 +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 HuXuh-4AuiJ5 for ; Thu, 17 Mar 2011 00:58:13 +0100 (CET) X-Greylist: delayed 906 seconds by postgrey-1.27 at theia; Thu, 17 Mar 2011 00:58:11 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 DB3EHSOBE001.bigfish.com (mail-db3.bigfish.com [94.245.120.74]) by theia.denx.de (Postfix) with ESMTPS id 0F6D7280AF for ; Thu, 17 Mar 2011 00:58:11 +0100 (CET) Received: from mail23-db3-R.bigfish.com (10.3.81.246) by DB3EHSOBE001.bigfish.com (10.3.84.21) with Microsoft SMTP Server id 14.1.225.22; Wed, 16 Mar 2011 23:43:04 +0000 Received: from mail23-db3 (localhost.localdomain [127.0.0.1]) by mail23-db3-R.bigfish.com (Postfix) with ESMTP id 07586740542; Wed, 16 Mar 2011 23:43:04 +0000 (UTC) X-SpamScore: -9 X-BigFish: VS-9(z37d5kz1432N98dNzz1202hzz8275dhz2dh2a8h637h668h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail23-db3 (localhost.localdomain [127.0.0.1]) by mail23-db3 (MessageSwitch) id 1300318983703642_523; Wed, 16 Mar 2011 23:43:03 +0000 (UTC) Received: from DB3EHSMHS009.bigfish.com (unknown [10.3.81.240]) by mail23-db3.bigfish.com (Postfix) with ESMTP id A86BC1028050; Wed, 16 Mar 2011 23:43:03 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB3EHSMHS009.bigfish.com (10.3.87.109) with Microsoft SMTP Server (TLS) id 14.1.225.8; Wed, 16 Mar 2011 23:42:58 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.270.2; Wed, 16 Mar 2011 18:42:56 -0500 Received: from schlenkerla (schlenkerla.am.freescale.net [10.82.120.180]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id p2GNgtwH026644; Wed, 16 Mar 2011 18:42:56 -0500 (CDT) Date: Wed, 16 Mar 2011 18:42:55 -0500 From: Scott Wood To: Florian Fainelli Message-ID: <20110316234255.GA1629@schlenkerla> References: <201102251101.34075.florian@openwrt.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201102251101.34075.florian@openwrt.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginatorOrg: freescale.com Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [U-Boot, v4] NAND: add support for reading ONFI page table 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de On Fri, Feb 25, 2011 at 12:01:34AM -0000, Florian Fainelli wrote: > From: Florian Fainelli > > This patch adds support for reading an ONFI page parameter from a NAND > device supporting it. If this is the case, struct nand_chip onfi_version > member contains the supported ONFI version, 0 otherwise. > > This allows NAND drivers past nand_scan_ident to set the best timings for the > NAND chip. > > Signed-off-by: Florian Fainelli Applied to u-boot-nand-flash next with this change: -Scott diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 0d7c819..fa286a8 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2585,7 +2585,7 @@ static const struct nand_flash_dev *nand_get_flash_type(st type = nand_flash_ids; for (; type->name != NULL; type++) - if (dev_id == type->id) + if (*dev_id == type->id) break;