From patchwork Fri Apr 20 09:13:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 153981 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 79028B703E for ; Fri, 20 Apr 2012 19:15:39 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SL9vZ-00024X-QV; Fri, 20 Apr 2012 09:14:53 +0000 Received: from mail-wg0-f41.google.com ([74.125.82.41]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SL9ur-0001bj-K5 for linux-mtd@lists.infradead.org; Fri, 20 Apr 2012 09:14:12 +0000 Received: by wgbds1 with SMTP id ds1so488726wgb.0 for ; Fri, 20 Apr 2012 02:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=wrVc+4IvU/Tz/6Y8bUGnIqiPdx8O+HSkY0+ur+nM2Ew=; b=v14V4tCWKtFwyOg6OBaFJTBYxkizsBy4O1TC93BJUx3rPldo6vaoElJi9B8sunXtME XeSWN2BRf/HVktv+4xH6bwVFDjSrJV1jzAnCtXmQqDVSNBJBhVTsr6e2gK1p0JKjZbdQ Nri0Vt45zTdT4H5cxWFxR1AojjYKavFHdf8VvGZDJmjGb+/xWviOCka0HQWUOyPVhXpz ls7Ohx6wgLARZsnwO+EEVnBCR5otgV2FBubSxunBEtgJ7Z2CHWHNsQ1UpV+FIcA7BoFG MCpEp79fwvp8EeIT4g32JiFpiz2d06T2QOw8x4X9XT86ywgd8YdeegoxvfuBGc1Igbls ew6g== Received: by 10.216.132.6 with SMTP id n6mr3514399wei.26.1334913247747; Fri, 20 Apr 2012 02:14:07 -0700 (PDT) Received: from localhost.localdomain ([176.74.57.22]) by mx.google.com with ESMTPS id e6sm4130586wix.8.2012.04.20.02.14.06 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Apr 2012 02:14:07 -0700 (PDT) From: Bastian Hecht To: linux-mtd@lists.infradead.org, linux-sh@vger.kernel.org Subject: [PATCH 9/9] ARM: sh-mobile: mackerel: Use hardware error correction Date: Fri, 20 Apr 2012 11:13:50 +0200 Message-Id: <1334913230-23615-10-git-send-email-hechtb@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1334913230-23615-1-git-send-email-hechtb@gmail.com> References: <1334913230-23615-1-git-send-email-hechtb@gmail.com> X-Spam-Note: CRM114 invocation failed 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 [74.125.82.41 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (hechtb[at]googlemail.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: Magnus Damm , Laurent Pichart X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 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-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Use the built-in hardware error code correction of the sh_flctl. Signed-off-by: Bastian Hecht --- arch/arm/mach-shmobile/board-mackerel.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 1de1fb7..f8289f4 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@ -1003,6 +1003,7 @@ static struct sh_flctl_platform_data nand_flash_data = { .flcmncr_val = CLK_16B_12L_4H | TYPESEL_SET | SHBUSSEL | SEL_16BIT | SNAND_E, .use_holden = 1, + .has_hwecc = 1, }; static struct platform_device nand_flash_device = {