Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp238230pxb; Wed, 24 Feb 2021 00:16:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmo+jB48Jeyjw08wz5vtLAHr6LeGI0ddkr3gA2TvQGEQDrdsb1vg6BZ6w6F/k3qau4c7wa X-Received: by 2002:a17:906:e4c:: with SMTP id q12mr29963182eji.463.1614154568207; Wed, 24 Feb 2021 00:16:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614154568; cv=none; d=google.com; s=arc-20160816; b=FM+kvtGlGv1gTACTMEzxkBnCq88RpZAe05r8VqDsCpDT0+YI65QNa84U8a+WLBfelr Yh/B/nXtItvc7d77dlICi94bRHz9Ju8S3ILSGNzn3z7ex56eOVcLF3svKbj/j2ULhu3h x2oEu3Ra5z7eMrlzmC9/gMvfrtccU39I6ewIfY855fa4i5MeY5mhKIyd0TGzLIRzLU9c RThNbLwXYFLdssW7wqnSU7sQQje0zIS+bLcKRvdtydybvZQel0CTBLbZn76I/y/LaJAH 8TGBHf2cGBTl1CuxQmjEzMqaeArb/HJmIj/12pRhELkD5lQYsbYd9n4O1Zxl5IMcaMe4 uqOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=0E5yhifL1T90IrGyMkqbKkYPvAgoE+nUQWUj2LPWCP0=; b=eb4RNU3eZ5pty869TFs09Psmk1DXE1qSXXFRuddocInQ85Q4a1Odc8KPE4Wk0s1QBw hafgaj2Tnn+bn/HTVg3A14NK805wtMBSefFuw/4UE1BBOqZ8F4VaasLQRcBt74cHJrNg sIVMjNDDY8jr3VUs15hqGgPox3merHKrnAwnby0tlXOmZBd9pvV8zJvjKid1a17msTTi fuov1anPwfqd2Pf2xWkUu7qx5/0Y09KK1ozbwr4bgaz/6O72gX/kquLE0wLQU8s0a+1P 4tVA5gMJOquZ62k3yRL9S3OEQNhRMD1F11z/1kzdRE8hfAl29c4AcCWnkU60cjkth/BG Eyvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CnMPkPlP; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si836189edw.310.2021.02.24.00.15.40; Wed, 24 Feb 2021 00:16:08 -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=@gmail.com header.s=20161025 header.b=CnMPkPlP; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233020AbhBXHSJ (ORCPT + 99 others); Wed, 24 Feb 2021 02:18:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233068AbhBXHRm (ORCPT ); Wed, 24 Feb 2021 02:17:42 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB587C061574 for ; Tue, 23 Feb 2021 23:17:01 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id c7so817321wru.8 for ; Tue, 23 Feb 2021 23:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0E5yhifL1T90IrGyMkqbKkYPvAgoE+nUQWUj2LPWCP0=; b=CnMPkPlPebDewujqh7cktFnvBctn8KkHpVdBeAbQq4yPpO6boZ6J3uVQhOw81DHQXR mfGJUxQISlHrJEE0Iu7d0ao1dZZtXIa70y+SMYCH5oP6PWCV+xHRz8L3dR8WrfFeo/AI sP3Cy6ypf/ruE7Rn1ail8fCZxR27SG0ezFsrSKuxwiuROkCLDqonXflF/70s2MYtViEx LcK4LiA1qYngEN2Ub4i21CoSV/O+U+SU8GeQ9vdqViQsteFGZHdCihluhE9FskNe2puI nT9c0c/J9bASJYJRef/GgsRV51flVKlyKunZNQK5BcpaFcGbOEby3PBaVh52AIAH3KgV 9Dgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0E5yhifL1T90IrGyMkqbKkYPvAgoE+nUQWUj2LPWCP0=; b=uKDh+ivCeewOIUeLxu1bgrlq9GHzqbskfkwbkMMQkIsKmLhQK2ohhIYM3bknz9Ag/6 62VD5t+jaO6piJzsgcUBMhZPQ0qTd71liTiRcGjVSzehAsauvXN0cnqHEtYjNdOs+W3M +MuLFoCHJcH7X00+pUAtorPuTGRPBgenJJHJe+TUg95dc9TQGG3qwbrekXQzI+4une6z UBRj0zzFDtGYtbMH0CDVuJBzxGfl+EHHnEAhZC8L2MiEK+aebip5KJw/9IAQkGy6l2zw nehivL4OHkC/xXSs4Vv5bP+0i+9oV6v4HgDcF4weBEIEpTyG9jYJL2dlpYFwBXkzGYB1 4hnQ== X-Gm-Message-State: AOAM531j8EW2RofYqFHkxVE7D7YFrtNnqrvKN6fCdT8Flm/aSUE/I65x 6VwzGzgEFMUMthxeg4p43o4= X-Received: by 2002:a05:6000:1543:: with SMTP id 3mr30716137wry.254.1614151020681; Tue, 23 Feb 2021 23:17:00 -0800 (PST) Received: from macbook-pro-alvaro.lan (170.red-88-1-105.dynamicip.rima-tde.net. [88.1.105.170]) by smtp.gmail.com with ESMTPSA id p9sm1330821wmg.10.2021.02.23.23.16.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2021 23:17:00 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH] nand: brcmnand: fix OOB R/W with Hamming ECC From: =?utf-8?Q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= In-Reply-To: <32837cb2-f7ba-d59e-de66-051019b21e89@gmail.com> Date: Wed, 24 Feb 2021 08:16:58 +0100 Cc: Brian Norris , Kamal Dasu , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <0670B343-C39E-4610-8061-A7F81F90B9F4@gmail.com> References: <20210222201655.32361-1-noltari@gmail.com> <32837cb2-f7ba-d59e-de66-051019b21e89@gmail.com> To: Florian Fainelli X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, > El 24 feb 2021, a las 4:46, Florian Fainelli = escribi=C3=B3: >=20 >=20 >=20 > On 2/22/2021 12:16 PM, =C3=81lvaro Fern=C3=A1ndez Rojas wrote: >> Hamming ECC doesn't cover the OOB data, so reading or writing OOB = shall >> always be done without ECC enabled. >> This is a problem when adding JFFS2 cleanmarkers to erased blocks. If = JFFS2 >> clenmarkers are added to the OOB with ECC enabled, OOB bytes will be = changed >> from ff ff ff to 00 00 00, reporting incorrect ECC errors. >>=20 >> Signed-off-by: =C3=81lvaro Fern=C3=A1ndez Rojas >=20 > Should there be a Fixes: tag provided here for back porting to stable = trees? I think so, but the fixed commit would be the first one, right? 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 > --=20 > Florian Best regards, =C3=81lvaro.=