From patchwork Wed Aug 16 20:31:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 9904587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 267CE60244 for ; Wed, 16 Aug 2017 20:31:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1810228683 for ; Wed, 16 Aug 2017 20:31:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D18E286D3; Wed, 16 Aug 2017 20:31:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AE27428683 for ; Wed, 16 Aug 2017 20:31:52 +0000 (UTC) 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: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:In-Reply-To: References:List-Owner; bh=V3Mppo2+GTL+GsrnaavU2qpEK13sk6KtBYlKqxOyXoU=; b=Sp4 sSrtajl34/TQrLiLoREDp7by+issyLV/rPJEzG5SMTMK71UC10kFN0tvNb/L9Usg0Vslr5iq/QtXk 4hQnSbcPk1I7K32CSRm3qxlhjREntySniTD9Ke+UicDUeqYENv7OiQ1ErAks2eaIDmxr5Z5xYHtk8 7pbdVL1swS/7w8oJfbpoizL4/YB11b8rYzQhUa/VDqrYURUxAvYjrWM2MbsmtiM0cvDzwgs6Hi19C UFPVRi7uZKAaOxVqtWwuOUxI5T8qQVf3I7gUyudht41hTS+Uw+gblY4hhno7Nt1WT+//eZTrunYSv CPvJ2xB0BKNna8CkY16EF3p65mBBKqQ==; 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 1di4yc-0001xU-Lk; Wed, 16 Aug 2017 20:31:42 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1di4yY-0001ah-QQ for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2017 20:31:40 +0000 Received: from thinkpad.chello.pl (89-70-51-0.dynamic.chello.pl [89.70.51.0]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 99E4422B5F; Wed, 16 Aug 2017 20:31:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99E4422B5F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=snawrocki@kernel.org From: snawrocki@kernel.org To: krzk@kernel.org Subject: [PATCH] ARM: S3C24XX: Fix NAND ECC mode for mini2440 board Date: Wed, 16 Aug 2017 22:31:01 +0200 Message-Id: <1502915461-8625-1-git-send-email-snawrocki@kernel.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170816_133138_913993_EF486B5B X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sylwester Nawrocki , linux-samsung-soc@vger.kernel.org, Sergio Prado , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sylwester Nawrocki After commit e9f66ae23c "mtd: s3c2410: make ecc mode configurable via platform data" booting of the mini2440 board is broken, since for this board we have CONFIG_MTD_NAND_S3C2410_HWECC set. The console gets flooded with errors reported by the mtd subsystem. This patch changes ecc_mode to NAND_ECC_HW which restores proper operation of the NAND flash memory. Cc: Sergio Prado Fixes: e9f66ae23c "mtd: s3c2410: make ecc mode configurable via platform data" Signed-off-by: Sylwester Nawrocki --- arch/arm/mach-s3c24xx/mach-mini2440.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-s3c24xx/mach-mini2440.c b/arch/arm/mach-s3c24xx/mach-mini2440.c index 98bff4b..3e75efd 100644 --- a/arch/arm/mach-s3c24xx/mach-mini2440.c +++ b/arch/arm/mach-s3c24xx/mach-mini2440.c @@ -289,7 +289,7 @@ .nr_sets = ARRAY_SIZE(mini2440_nand_sets), .sets = mini2440_nand_sets, .ignore_unset_ecc = 1, - .ecc_mode = NAND_ECC_SOFT, + .ecc_mode = NAND_ECC_HW, }; /* DM9000AEP 10/100 ethernet controller */