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)