From patchwork Wed Sep 13 05:20:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 112398 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp534292qgf; Tue, 12 Sep 2017 22:22:09 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6gqaXRs2eUFuP4Q3cfVRPnXrDrRmbmgB+oQYuOUXEOSbegG9vYEOyCDXkUmpFQ3q6SKr+C X-Received: by 10.99.121.129 with SMTP id u123mr17229898pgc.246.1505280129914; Tue, 12 Sep 2017 22:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505280129; cv=none; d=google.com; s=arc-20160816; b=D+vgf0B203HeR3hi8KgYtm48fheVUA7Mm2j2w/S3yQ13BBi1u8qqm532pK+WPHxFUn 1SRna+an58Ch+PJ7F+8nA+PPvRIWrBpawAyL3AZCAg8joYusYmmFSq4xtc1MI+N0VpW4 2hKLtuYo3km3Tx8yao7Pp43NZqt8pfSgaiIaGfaHnX4xMQjAN4bM75YzZ9/9anrznaAO 4EIagl+6KyhxLq+dyLTYT1julX9bMKttu6hM6uKup6ZWgvD3T+qPuimeV0Fg91VnqjSu CD8PF2+A8sD05Wa5xy8ime24G7p/EwymKWrykgviRa6gJ0oa6qAAhc57sVKcFAP/bCxp 2nRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter:dkim-signature :arc-authentication-results; bh=DBcyv0TWgyQtPllE5G+Yk2rbu9KUh0UzGjTSQivcL0s=; b=sVRZue8wLUIHzt+V77lKoVangkjETYZfMH3IImrQHXIh3EK7qJItcikjsoTErJK1Uj dvxlzdu1IieaHSsfNJJEnFRo7zulgGWVyst11zGqQEIr1cMb5XaCpywqTvCLAQ55VGHH mRgpbe6SI/ERPxxOrwaatP3/hZD4Zd2fUTqKp/6dEWSQhYRhKaeL+k/9K/c+IswjqyYu GPdnR08ryoTklSHB52en24N+8r8mZC53L4YmFOI4KRa0KVdfRi7mCY3vrSS1pkhTOkDC HDekdCLhcWyP5N9WdpmU/2t2X8jTozwoP59Ac9HBfsAPzmdhfdYbMrmtk0vT0wyQTRls WNEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=GRsRhb4j; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=hd1PT2fu; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id 32si9844008pld.84.2017.09.12.22.22.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 22:22:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=GRsRhb4j; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=hd1PT2fu; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=DBcyv0TWgyQtPllE5G+Yk2rbu9KUh0UzGjTSQivcL0s=; b=GRsRhb4jiU2/Lww3QcnocV0Red wtyRLewKGBIivHMgllJd+NYshUd1uNUKX4XcDblNmIBEddnGYX8JHHzyKpZ9kJFvrZsEfGZJOepOP qZzykXQGWlGGdC34//lwXgF9aq7ktBO5MliOcBp8jQevQ1pNYT49ONuVWhEmorukBu2PcaIu+7yXv 2oIicrGquHuwwKXU9SMpDTsA5CK0McthTfVlLlcmj6mxfhQW5ZKO7x86TAiq03h0w/NIUiW6p7M4V m8zH3pHw50Bp2Ac3CoisLBPyhE1OPzk+VclHnQP3NlqimM0wj1akCQF5SarIdQkauPrdcQNahKuIZ TZc/hy3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ds07W-0006fp-Vg; Wed, 13 Sep 2017 05:21:55 +0000 Received: from conuserg-12.nifty.com ([210.131.2.79]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ds07J-0006Xm-ND for linux-mtd@lists.infradead.org; Wed, 13 Sep 2017 05:21:44 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v8D5Kpx1010397; Wed, 13 Sep 2017 14:20:53 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v8D5Kpx1010397 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505280053; bh=9/tfHoJ1qCklx6/AljUNKgsVMXdwag1jSvRgNprXEec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hd1PT2fusH37l/dbVSMfIoNHX3kOAZUn2gPS4kYfw5K/k/D2UDvhq2TWv6Kacz71P VvHQen4o0uEUy6vAGsiMDtvHP8OZ12O21byL5Py/zIDePiBmsOUrxsNXbifPzHla5G 9LZ6aSeRUKJnE0laNlemP9evuI0+DjaicQQg7L58e56EVADgRv55y/8apRf/VZcfXJ MJOwJh+UvE5jcVWmxgVKXcExozrOFok98BhcPgrchMQpFWah/xOaQjBgDwfE/VFBen v4z4qqeIsHxa6X6cGygxGhk+dsGWBLFSKaxohQD0rLq0Loi9ZgZo8D6BB6MGIFoY81 /FwJdTH+8fcBA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [PATCH 2/9] mtd: nand: denali: prefix detect_max_banks() with denali_ Date: Wed, 13 Sep 2017 14:20:39 +0900 Message-Id: <1505280046-16608-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505280046-16608-1-git-send-email-yamada.masahiro@socionext.com> References: <1505280046-16608-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170912_222142_255718_C631C0C9 X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Marek Vasut , Richard Weinberger , linux-kernel@vger.kernel.org, Masahiro Yamada , Cyrille Pitchen , Brian Norris , David Woodhouse MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org All functions in this driver are prefixed with denali_ except detect_max_banks(). Rename it for consistency. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index d847ae4..48193f9 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -81,7 +81,7 @@ static void denali_host_write(struct denali_nand_info *denali, * Use the configuration feature register to determine the maximum number of * banks that the hardware supports. */ -static void detect_max_banks(struct denali_nand_info *denali) +static void denali_detect_max_banks(struct denali_nand_info *denali) { uint32_t features = ioread32(denali->reg + FEATURES); @@ -1115,7 +1115,7 @@ static void denali_hw_init(struct denali_nand_info *denali) * if this value is 0, just let it be. */ denali->oob_skip_bytes = ioread32(denali->reg + SPARE_AREA_SKIP_BYTES); - detect_max_banks(denali); + denali_detect_max_banks(denali); iowrite32(0x0F, denali->reg + RB_PIN_ENABLED); iowrite32(CHIP_EN_DONT_CARE__FLAG, denali->reg + CHIP_ENABLE_DONT_CARE); From patchwork Wed Sep 13 05:20:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 112400 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp534872qgf; Tue, 12 Sep 2017 22:22:48 -0700 (PDT) X-Google-Smtp-Source: ADKCNb7/Jj3jwwFyLDXHPNuAN0hbkuzf3N9gDj7ZqIJAMkxGXa8ggnmw6QFezspc+5M8KPPSAPwD X-Received: by 10.98.81.2 with SMTP id f2mr17137633pfb.190.1505280168736; Tue, 12 Sep 2017 22:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505280168; cv=none; d=google.com; s=arc-20160816; b=c6W5Hrue9hbPv/XNLAcsj/KEALuB1XvxdQFJMTJrLSS+nxBTjJjap3w1OtR9O0hmnd RW7t26FP1p+uDHx1mlaSaPPNxK+pE1cXMPYc6/lgxfvtbXVVcIm0UdeRo3UEWsc6lzQf q7g/KBTGqjLsm5mxiY93PnI2zRkAPNrHtSOAiOvFA7+w7d0UXGLNiNgt36Kp1t+na2jW 4k5g0asYuCIFwT4Km602kSfaacBQzoc10Tqf1vICbQZeIREPzhsW/kVccSZZwC8JkIpG KYZqOYL87KgUe97pR9O9xsIIqOCtxin/a36JLpBYY9RJRejTGilxDxK/vuUZSdhscWV4 TH3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter:dkim-signature :arc-authentication-results; bh=MKTDKLmyXILnO6afNJS1aOIpQN/6pvNeySC0M8kT/WM=; b=hgcKMuQx0X5jvzbERdfao9PIeGlvgckTQe9LOzSsF84/UgBCDEy7V3ReyhzYuAxeZ5 aUVFzJgZL83r5nLMmpi9nGhmJ2AtdrWq2h0ndW8lTJNk4PaWe1JXsMxUfms5yoE20FAh pCogLimPMlrSP8cWZ09Hhu4JNQa6hNTE8gGVUkMIfLgs7H/BM3tSwItgUu9EfzkJz1wB lTvV86CkyFutgQDalP8K/2tCqb8THH+snasZ+K0vO+8g4ZH6q6IcXsxE89EZr7Z056nR Dvwm8DqU9THY9gNU35Wz7CdmDh1eSdBsOqfIZiUCWraVFyv5eNpQfo7RMXFRL2tQiq9X Rvig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=t/O43RHp; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=g/B+87rD; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id d6si8729978pgn.192.2017.09.12.22.22.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 22:22:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=t/O43RHp; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=g/B+87rD; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=MKTDKLmyXILnO6afNJS1aOIpQN/6pvNeySC0M8kT/WM=; b=t/O43RHpxiJxDkBpkHFq+aXXHJ XkKR3ek1IDSS/l6bfrpvr5ugb5q5r/3WASlyVeXibxNhFjLeMIY9NTEoa4Eyzf36FmFBt4uZ2ZLe4 hraidSFcR/6rqOZD1u2YERHTPyQ7C4ukxr91MvqUEgakpYaa7gyD7kYyhPNZ0p+DPR+vSgMAREQlX tLTfgXqDMdO9mSceVHVq303qX+XKVlzG34/BOBi/jFRfMkIZZUf1+n0ZUBDQhAqQAAUcOZfFw6Zrz b7THrPNHBJxzPPw3Y9pn0c8azjeQkCN9qV/x//gJt/QqqhNQI2oVDcwIijiwHX6BmXkUptxKsV+wg 4iK++m+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ds08C-0007Bx-7s; Wed, 13 Sep 2017 05:22:36 +0000 Received: from conuserg-12.nifty.com ([210.131.2.79]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ds07J-0006Xv-NL for linux-mtd@lists.infradead.org; Wed, 13 Sep 2017 05:21:46 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v8D5Kpx4010397; Wed, 13 Sep 2017 14:20:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v8D5Kpx4010397 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505280056; bh=afzzRgNrcA6Tk8r4AaJ0Wk5HMuy3w1oKDlHgWwjQupg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g/B+87rDaUxuWFMKSvzwHUHXtT0M2zRKAA8P5tIhhEtAj+q3F/CF+VaZI65pxJilm 5rQ5kxT3u15Au7O7zd8j6z+Fx9s6LLeRyjQKouIYmo0ptbP+dbwAaBomOP/+zwE1kb KzndV/beHARLkq8enkCcvVnuSpA5d/CfDClB69jFpAPdkuTME8LxbBnnLI90WkKKeE g2P8rNcZdkeWROCiUp2k4vYJ8rju9BycfgBg8nx4z4H4OitUO844rN1u3aYuJ7//2F lStPuP1dZUOzPe6bXGvCjVeoKERo6KZrvjb0z3XpycUoopJxQKlqkWZCdI3V4E826m Fm7ZgrRx/9Ygg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [PATCH 5/9] mtd: nand: denali: slight clean up of denali_wait_for_irq() Date: Wed, 13 Sep 2017 14:20:42 +0900 Message-Id: <1505280046-16608-6-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505280046-16608-1-git-send-email-yamada.masahiro@socionext.com> References: <1505280046-16608-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170912_222142_252572_0F379BFF X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Marek Vasut , Richard Weinberger , linux-kernel@vger.kernel.org, Masahiro Yamada , Cyrille Pitchen , Brian Norris , David Woodhouse MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This function has a local variable "irq_mask" and its value is the same as denali->irq_mask. Clean up the code a little. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index e7b25de..3cc56de 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -191,7 +191,7 @@ static uint32_t denali_wait_for_irq(struct denali_nand_info *denali, msecs_to_jiffies(1000)); if (!time_left) { dev_err(denali->dev, "timeout while waiting for irq 0x%x\n", - denali->irq_mask); + irq_mask); return 0; } From patchwork Wed Sep 13 05:20:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 112401 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp535213qgf; Tue, 12 Sep 2017 22:23:08 -0700 (PDT) X-Google-Smtp-Source: ADKCNb5z6FYS8zKoxFM2E+vcK473lfVTMsPDNNAvpfWu1e3Y3RuATU97gkqOa4h3WpRzxb5mG4ed X-Received: by 10.99.53.3 with SMTP id c3mr17175162pga.220.1505280188570; Tue, 12 Sep 2017 22:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505280188; cv=none; d=google.com; s=arc-20160816; b=Ft0RmoIpaT0ERa9elfsnTaJ05dd4ZDLHNnOmmIa6XWyt8g91EOuggXhhEeLdakrJVF BodivdnTPgjHutZ8mx6W0jN95alle7mDIvHReZannR6c2ssuMzHtUT2vqETV4OAmTyn1 uoCI0+S+cNfqh5NtbztrcHjfAjJEbJ9bY0ncYHN8ABz48vR2GrDpNNIQefX9FvI7kev7 Ku8FHvY/sOuG8iizB9tW0F27nhPML6/+ILVTmHHkql2pGCWzKXHHFdaDoOuHsQKL5d4E l6pNJ1Ml75b3ICyXKbiZfKVXwzTXGEPdT4c92s6FbT8MXQTpCxnenwMti3MYs+kJKJxz cEjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter:dkim-signature :arc-authentication-results; bh=B0BLW3utGzRBMVdqHSq4vEy8jwGBkGnnk7Wx/stxoaY=; b=gGDbh+i2cL/CL9nDZuhgAOr1t5CPgps9xziP6u2pKTtYVvyA4agnOSe/tyi/HIsSIK vfcLUrgCe0++NzaU+lEeQUzZLdQgOIdKOukoRFI8WQQi2hQj8d4mu6wi43zFsMowS4oX Y/ti+DMbQOjDnEzSa2MduW18Yeid37DCiGl13k0/M89wkFG3JfqTcwIKuIoTzfL+tkJq 44sZ707uZK4fumQmZ0YAA9vs/01oDSpKusshHHNt7YuVogNCoa3cfCf3CxEatz+Hen0D G0XaB3w6x/cWeVZg9GWCfbtkgZiP4DenihtmNv6ksxjBAy6q2mEsAVEeObWhgU6xjTC+ oBcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=t3uJZXFj; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=KTOYH7rE; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id w1si9688342plk.783.2017.09.12.22.23.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 22:23:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=t3uJZXFj; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=KTOYH7rE; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=B0BLW3utGzRBMVdqHSq4vEy8jwGBkGnnk7Wx/stxoaY=; b=t3uJZXFj2gG4mYBdRMS2pjNhQe YBO4/K7Wnk9RbsjcqB+B3gZkRdGjNS1yDdXgkHe1vfiJoiJNknYshYudJxJAKW7RWk0+NO34CWbad sVQyURbIzCq6s/zd4vvAcnWijtx0v/lDLMl3B0UV4Zo0lVZvi+MNwFSuBAaJO2JBcUMoT19iygbRG hDIDrlnASfdNpF/qVxiuQHlmvKsJohMqr0MiQQ5jWK0bPeAai8+MIoyc68o2TTUuOdytDCftqWJJt XfiHC+P2A+wDqcpHTywbzWcWm8BnkNbbhw0vepKj3bqywirh6/uF1lO7xbBgrVqi6uXGBYAmjaxzf p49hndAg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ds08Z-0007TC-Gz; Wed, 13 Sep 2017 05:22:59 +0000 Received: from conuserg-12.nifty.com ([210.131.2.79]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ds07J-0006Xr-NG for linux-mtd@lists.infradead.org; Wed, 13 Sep 2017 05:21:51 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v8D5Kpx8010397; Wed, 13 Sep 2017 14:20:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v8D5Kpx8010397 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505280059; bh=6db5N6FZs6OXZS+oExOzjjsslk97HyhiH4l+h9CTyns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KTOYH7rEBhpCUpqlgVNNegjqj/71V+Osozu6OUu12o205dwrcDouuQ0f8KCgSQqwt pI7nbs3t0ITZRTbR+hPg8DUcdq89yq43HF+aeAC4cazyYnIB4M2UZmxdXqmMY0m40B nV6OoSDqgZZop4b9UmanDd2v+l0J32w/1u9g81FSbPOnLjVsi4F39I/oc6rEylIDL3 6wAmh2iBimuEFoLqXQGw90lglwTJx6Q2CThks+LY+IV+UL+BwzpPqR/k6ocuIWJL4h 6aPzPqoxqek877nJFvKtvTKgEsL1T7Ie3BuCKfwEJR3yK4FypHNnED7Hu8sAPFRpew sqYrByUYVmHJA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [PATCH 9/9] mtd: nand: denali: remove unneeded init of ECC_ENABLE register Date: Wed, 13 Sep 2017 14:20:46 +0900 Message-Id: <1505280046-16608-10-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505280046-16608-1-git-send-email-yamada.masahiro@socionext.com> References: <1505280046-16608-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170912_222142_297082_51E7FAF0 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Marek Vasut , Richard Weinberger , linux-kernel@vger.kernel.org, Masahiro Yamada , Cyrille Pitchen , Brian Norris , David Woodhouse MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org The ECC correction is properly enabled/disabled before the page read/write. There is no need to set up this at the beginning of the probe. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 02ce310..7a2ad47 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -1101,8 +1101,6 @@ static void denali_hw_init(struct denali_nand_info *denali) iowrite32(CHIP_EN_DONT_CARE__FLAG, denali->reg + CHIP_ENABLE_DONT_CARE); iowrite32(0xffff, denali->reg + SPARE_AREA_MARKER); - - iowrite32(1, denali->reg + ECC_ENABLE); } int denali_calc_ecc_bytes(int step_size, int strength)