From patchwork Wed Oct 26 01:26:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 686841 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 3t3XT05JXrz9t0J for ; Wed, 26 Oct 2016 12:27:48 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=Xn0cTvhj; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DBEFBA75FD; Wed, 26 Oct 2016 03:27:15 +0200 (CEST) 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 oTQlee1Vgmf8; Wed, 26 Oct 2016 03:27:15 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A1AD3A760B; Wed, 26 Oct 2016 03:27:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0BEF9A75E9 for ; Wed, 26 Oct 2016 03:27:08 +0200 (CEST) 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 6rbqwEUx_DXt for ; Wed, 26 Oct 2016 03:27:07 +0200 (CEST) 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-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by theia.denx.de (Postfix) with ESMTPS id D60E6B381E for ; Wed, 26 Oct 2016 03:26:54 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id u84so696935pfj.1 for ; Tue, 25 Oct 2016 18:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iyV7T30UATwu2YzIvGvRPLj6Urt76v6KKkJ8ARgByNc=; b=Xn0cTvhjzVPT60UmAQKdthVJVPrSh2xIt6TCr/3VGRMcMnXM3Nf/G14+HXMzvTHg9R k74CuIDJ6MGik9pXjsurkEhg/E85xtrhe12hz1PGCuIlTMX9khm/Wg1k/GiklLwJQnA0 H3Q3ELnbcO5enVvPn5h/5W8aWZIlQKcWZaFvOmhX8qG+2nfvnepNamj2G25ClybMVR+D XHxeT9BLfLJOw2fSvAwS7bYtdud/QjeEIqntWZcVTvbXTHXLdAPbUvbgsOfj3Z8ydUMe zYtSMkeTG3XFEgD7shKvdBTH+yxcKkb3N9IOo0DP2L20z/d0x7GaskLe0+0UQDqim0fX +OeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iyV7T30UATwu2YzIvGvRPLj6Urt76v6KKkJ8ARgByNc=; b=DO8cH5OTqKyvOc24zuBsZfs0HCa+IeUlGuJpSXeNep58yScz1FkG+YLbdQmHfARGXw MIsKqcSaqonquqpFcxg/B531XWwyoUBOWXJRJ352dSQnqpmr8FCg+cdu5eC/cS25JheD +ehUk0jAS4VgZm/Q9oPrLV/HMgyvJQpLd5LnOiDT+dODggqnCEcDIAN1cIZb2MYDQ/qb rT4U2rOVcm0rtljjKtIGSDaLCxbjnqrSOrHDDHtNH3I4CLApbIcLLhsn5t3ZkBqphqWl iTwyEdRTVS/Ig0lMSTEnnDAGJgotxqt0Slb+m/YNCwTDE5CXfaKq+5S5S+xmtuaDmq6V USWw== X-Gm-Message-State: ABUngvf+NdAichdgZ+3r0L7VXDvN27ZmsgqhQAyLMU12diVzh2J0Ih7+2Qa+VMU+ak3+/Q== X-Received: by 10.99.42.80 with SMTP id q77mr37422885pgq.3.1477445213424; Tue, 25 Oct 2016 18:26:53 -0700 (PDT) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:a4a7:b31:c210:ddc6]) by smtp.gmail.com with ESMTPSA id ij5sm36231958pab.2.2016.10.25.18.26.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Oct 2016 18:26:52 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Date: Wed, 26 Oct 2016 14:26:09 +1300 Message-Id: <20161026012612.9479-8-judge.packham@gmail.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161026012612.9479-1-judge.packham@gmail.com> References: <20161026012612.9479-1-judge.packham@gmail.com> MIME-Version: 1.0 Cc: Scott Wood , Luka Perkov , Stefan Roese , Chris Packham Subject: [U-Boot] [RFC PATCH v2 07/10] mtd: pxa3xx_nand: Increase the initial chunk size X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The chunk size represents the size of the data chunks, which is used by the controllers that allow to split transfered data. However, the initial chunk size is used in a non-splitted way, during device identification. Therefore, it must be large enough for all the NAND commands issued during device identification. This includes NAND_CMD_PARAM which was recently changed to transfer up to 2048 bytes (for the redundant parameter pages). Thus, the initial chunk size should be 2048 as well. On Armada 370/XP platforms (NFCv2) booted without the keep-config devicetree property, this commit fixes a timeout on the NAND_CMD_PARAM command: [..] pxa3xx-nand f10d0000.nand: This platform can't do DMA on this device pxa3xx-nand f10d0000.nand: Wait time out!!! nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x38 nand: Micron MT29F8G08ABABAWP nand: 1024 MiB, SLC, erase size: 512 KiB, page size: 4096, OOB size: 224 [ Linux commit c7f00c29aa846b00c70bc99ddb6b1cc7e17c47d4 ] Cc: Ezequiel GarcĂ­a Signed-off-by: Chris Packham --- Changes in v2: - new patch drivers/mtd/nand/pxa3xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index d1c6e010f3c0..146ef096ea3f 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -1372,7 +1372,7 @@ static int pxa3xx_nand_scan(struct mtd_info *mtd) goto KEEP_CONFIG; /* Set a default chunk size */ - info->chunk_size = 512; + info->chunk_size = PAGE_CHUNK_SIZE; ret = pxa3xx_nand_sensing(host); if (ret) {