From patchwork Tue May 14 11:15:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 243859 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B97ED2C008F for ; Wed, 15 May 2013 12:30:25 +1000 (EST) Received: from merlin.infradead.org ([205.233.59.134]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UcDNO-0007A7-EB; Tue, 14 May 2013 11:26:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UcDDa-00037K-T6; Tue, 14 May 2013 11:16:30 +0000 Received: from mail-lb0-f178.google.com ([209.85.217.178]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UcDDZ-00035A-0k for linux-mtd@lists.infradead.org; Tue, 14 May 2013 11:16:29 +0000 Received: by mail-lb0-f178.google.com with SMTP id p10so459716lbv.23 for ; Tue, 14 May 2013 04:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=TF94W90plwFT0Y7PZkf092bE+zlS+0FrVZJtNuREu98=; b=jPuDumRnGWqdnbzF2dlIUDJ/asFY1jYA3MuZUpvejCxn4tqHdD9tn9fdSCij/Jxg4u pCmDT81VYg1ieJC14iqjpWHFks2n1Pkz3mEbKHlxnbROFWW9cXzvjqKCAzqGFvMtaeea oeYxdxE4+vrSrzSDv5OCVr7JyxGFzad4UxtkGCd9N79sfSZq+viv1x3+vQHh6EBanKkj i3QnVZLSdLv6bO7PCpMzZffGtwuUtkFZqkxcT4pbwUQ/YKpF7h4arsS7xic4b6nesfIt 9oj++4AR/4rFEYsUl5RNw8oBft7UbhA8AL588tWY+WRPgbvYDD4eYXH78ZTAT0Id0SVT TNhQ== X-Received: by 10.112.74.45 with SMTP id q13mr10862242lbv.73.1368530166099; Tue, 14 May 2013 04:16:06 -0700 (PDT) Received: from localhost.localdomain (65.222.3.200.ros.express.com.ar. [200.3.222.65]) by mx.google.com with ESMTPSA id mp1sm7103669lbb.5.2013.05.14.04.16.00 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 May 2013 04:16:05 -0700 (PDT) From: Ezequiel Garcia To: Subject: [PATCH 4/5] mtd: nand: pxa3xx: Add address support for READID command Date: Tue, 14 May 2013 08:15:24 -0300 Message-Id: <1368530125-12959-5-git-send-email-elezegarcia@gmail.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1368530125-12959-1-git-send-email-elezegarcia@gmail.com> References: <1368530125-12959-1-git-send-email-elezegarcia@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130514_071629_203645_BC1F4430 X-CRM114-Status: UNSURE ( 9.16 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.178 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (elezegarcia[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Thomas Petazzoni , Lior Amsalem , Artem Bityutskiy , Lei Wen , Haojian Zhuang , Maen Suleiman , Ezequiel Garcia , Gregory Clement , Neil Zhang , Chao Xie X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Ezequiel Garcia This allows to support READID ONFI command which sends 0x20 as address together with the 0x90 READID command. This is required to detect ONFI compliant devices. Signed-off-by: Ezequiel Garcia --- drivers/mtd/nand/pxa3xx_nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index e4e697f..36780e2 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -596,6 +596,7 @@ static int prepare_command_pool(struct pxa3xx_nand_info *info, int command, info->ndcb0 |= NDCB0_CMD_TYPE(3) | NDCB0_ADDR_CYC(1) | cmd; + info->ndcb1 = (column & 0xFF); info->data_size = 8; break;