Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1334648pxb; Wed, 10 Feb 2021 06:14:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJysp4UNhC64X5IfLPLs9Ld8jW1JeRHP3RhMC8e1MaycMnRlrqSG3rJqvTGz/ggrmpeLu2IT X-Received: by 2002:a17:907:3e04:: with SMTP id hp4mr3243421ejc.188.1612966441684; Wed, 10 Feb 2021 06:14:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612966441; cv=none; d=google.com; s=arc-20160816; b=iCKaoKm3Q+4PYlXy3HuXi63JELlITEeS9d/QYy0p3OqshuuvJujvvx5OOzyj68ldRg kx4zwYt82Hdd78FcxDCyZ4DMVEAVu4fbcsi2n9N9ZXbqFzkJDhKuoB1SWlZBof5GJPV5 t3oyg6azAMPFSWHNxeRitVY3ww7GFLhhb2kYTLTmY/sdPVjz4JEyUfo5rts/WKXg/jWN 8WLJoPpwn8F3bS8TD5lIdYuXY1uKB1TWgSa7ZVMoWu5iWn7fIcSjoRi5EAgrNbOTOlCQ w371KoF0aONJjAMzYLmDcv4aTqC8iVr7vHN0CENNXs2EDbzg7RSWU4bpradNV0thTadw MrEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=w345rOU6oWLuwnG3ybqJmfa8vkIYO0JytlkQ4yh5VBc=; b=iSpbWXqMRFdHRjbhpWbKXtBOWU6RtK4AGeUPIadpnFpKzTOspv1xH2yFw+QuAvP6us tqUJizkGNSPrnFvQThYZeky4HyX/x/drVPYVTuwzOYVG01DRb0qju/XWvauf5VMcYdeF tBRpO+NOe+XV/ZF8xS7vlD1pUxdF5C7PilkRgooszjx1HNIn6JDa9+d+Q+07XawjOtVC qnm7dk866ZYktFVVP7mYhfiBYza0OnogSy4zGvoPXUeR2mhZSK9gRRDU/90N7eh0FkB/ TdWYHxdG1wCADtHVQ1y9fcd7qjlpvb4fqWKiKReyZ8PNUjKwMWFggt1b5BkPiM+su816 lFLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=Z5u5O7V4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si1339500edc.346.2021.02.10.06.13.37; Wed, 10 Feb 2021 06:14:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=Z5u5O7V4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231699AbhBJOLu (ORCPT + 99 others); Wed, 10 Feb 2021 09:11:50 -0500 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:12090 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231846AbhBJOLQ (ORCPT ); Wed, 10 Feb 2021 09:11:16 -0500 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11AEARZK031422; Wed, 10 Feb 2021 06:10:27 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=w345rOU6oWLuwnG3ybqJmfa8vkIYO0JytlkQ4yh5VBc=; b=Z5u5O7V4EKzgWiJVrT+6V6ok197Edh9lV97POt3qy+kO/x+Mv0A8qk+l37P3O9aTfgRe CY/2nit/UyNqQnAPcEUj4Q81zdqXxgbMlyWpkZIX5DSQ+pAQtcqC9ggVI1oaBZpYVuHr /wwEYY/lkNR0IneY+Ct0/Q0V/QQmTp4ShdtUIYHAfR/grl+2nIlB+BbkTZSbG8Mn6Q1G PgOHVNPKi3u6PJig3R4kRZpSFcF9dAFx2ux0HIyl7OIlDb4OSe99ihsrYZQEcTiYxdq2 19PMabCucUbeG9j4yuDuxJjF6GalnZzRAxN+lcM00vXjyFxKg/RnipGXpVIB6hCaatHQ QA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 36hugqbs0g-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 10 Feb 2021 06:10:26 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 10 Feb 2021 06:10:21 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 10 Feb 2021 06:10:20 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 10 Feb 2021 06:10:20 -0800 Received: from octopus.marvell.com (octopus.marvell.com [10.5.24.3]) by maili.marvell.com (Postfix) with ESMTP id 771703F7041; Wed, 10 Feb 2021 06:10:17 -0800 (PST) From: To: , , CC: , , , , , , , , , , "Konstantin Porotchkin" Subject: [PATCH v2 07/12] fix: ARM64: dts: cp110: Switch to 8-bit ECC NAND setting Date: Wed, 10 Feb 2021 16:09:44 +0200 Message-ID: <20210210140949.32515-8-kostap@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210210140949.32515-1-kostap@marvell.com> References: <20210210140949.32515-1-kostap@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.737 definitions=2021-02-10_05:2021-02-10,2021-02-10 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Konstantin Porotchkin All A7K/A8K boards are using NAND chip that supports 8 bit ECC strength. Using lower ECC strength is not recommended by the flash manufacturer and may cause data corruption. This patch changes the nand-ecc-strength value from 4 to 8. Signed-off-by: Konstantin Porotchkin --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 2 +- arch/arm64/boot/dts/marvell/armada-8040-db.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts index f8179cadc610..39f1d393664f 100644 --- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts +++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts @@ -169,7 +169,7 @@ label = "pxa3xx_nand-0"; nand-rb = <0>; nand-on-flash-bbt; - nand-ecc-strength = <4>; + nand-ecc-strength = <8>; nand-ecc-step-size = <512>; partitions { diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/boot/dts/marvell/armada-8040-db.dts index 790c7ab0b816..372eda1f8898 100644 --- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts +++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts @@ -281,7 +281,7 @@ reg = <0>; nand-rb = <0>; nand-on-flash-bbt; - nand-ecc-strength = <4>; + nand-ecc-strength = <8>; nand-ecc-step-size = <512>; partitions { -- 2.17.1