From patchwork Sat Nov 26 18:06:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 84292 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp787403obn; Sat, 26 Nov 2016 10:12:31 -0800 (PST) X-Received: by 10.99.98.2 with SMTP id w2mr25511146pgb.59.1480183951584; Sat, 26 Nov 2016 10:12:31 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si49347226pgh.58.2016.11.26.10.12.31; Sat, 26 Nov 2016 10:12:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753891AbcKZSM0 (ORCPT + 25 others); Sat, 26 Nov 2016 13:12:26 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:48269 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753237AbcKZSI1 (ORCPT ); Sat, 26 Nov 2016 13:08:27 -0500 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-11.nifty.com with ESMTP id uAQI6Ueq018512; Sun, 27 Nov 2016 03:06:49 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com uAQI6Ueq018512 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1480183609; bh=+oqXiLMFL0EfoGFkGr1/kdIXX5r0ESTR5MwK1P/kBUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fo1kZan/0JzQRMiDjtEhMwAf+xIJrFWp8cOgW+MFahUYDDOh3sd1xYLGyYPU3IU72 3HsW1MDEyUeCSPMm0LsBh8a+xGYncEQwB/jzwLcuGZPtj/pelE6e5g0hzz/S/2NSe5 Ze1SlwrvUCzIzyxf8gtTceYHSsU7CwORff1UHpVqk8ofx2sml2rfRuw31TqhunLiaT KTuP9uE8ewYrIDYlIvtY+cGc2LVYkBcsNlcCclMhNTMop/BpxTyAuuOrSQnQzLOs6q 5E/bbVSC+FOMwt90Q1T3Mk12caVezu7JfobbG+qxCHy/UWzmbsYJuhZPyr+s0JmGH+ moAOZ98mOwAmQ== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org, Boris Brezillon , Marek Vasut , Brian Norris , Richard Weinberger , David Woodhouse , Cyrille Pitchen Subject: [PATCH 20/39] mtd: nand: denali_dt: enable HW_ECC_FIXUP capability for DT platform Date: Sun, 27 Nov 2016 03:06:06 +0900 Message-Id: <1480183585-592-21-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480183585-592-1-git-send-email-yamada.masahiro@socionext.com> References: <1480183585-592-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The denali_dt.c was split out by Altera for the SOCFPGA port. The Denali IP on SOCFPGA incorporates the hardware ECC fixup feature. Newer versions are very likely to support it. So, it should be OK to set DENALI_CAPS_HW_ECC_FIXUP for all DT platforms. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali_dt.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c index 293ddb8..9dcd203 100644 --- a/drivers/mtd/nand/denali_dt.c +++ b/drivers/mtd/nand/denali_dt.c @@ -59,6 +59,8 @@ static int denali_dt_probe(struct platform_device *ofdev) if (data) denali->caps = data->caps; + denali->caps |= DENALI_CAPS_HW_ECC_FIXUP; + denali->platform = DT; denali->dev = &ofdev->dev; denali->irq = platform_get_irq(ofdev, 0);