Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp266195pxb; Thu, 25 Feb 2021 01:46:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMuhguZf/3YF87qKsYuCAYT+AyExVhc5K5vpCkt9cMGjstuGbFf/FwJT4BjYsLL5z3lDcW X-Received: by 2002:a05:6402:308c:: with SMTP id de12mr1938541edb.255.1614246398066; Thu, 25 Feb 2021 01:46:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614246398; cv=none; d=google.com; s=arc-20160816; b=AYocov52KM8h5tXLg0+qWJnR0iLEIPiWcmzyPXE9kVHbVCKZmnXGC28lNqJ+/fXsSq qJO6tXTg11cogi+sn8gHtV6C+49PGs+eUOj7IBfdIGGJDSM2VRRfVp+exnAXCzfZB5GX JMNBCjgCM+FMQI4PsV8NzYGvHa8Y1zXOzdNU9j/hU7eJ/ja+pkS/OBcZVHY7AU7QvLfm t+63FRQh6N5wVqXRPrsCf9XlorBE3mQ3Zv0oHPMT1hnHhbC3vUWcYPOQPd6X4nzsudEo 0HFHDyDF0HPWT2u27tRlF/nCVW0XnZ9iymqDZTzfWC8Sr7a1zsTyi6KajC/JMcVhh2pj OAIg== 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=/YTWgHJSzDoLcdRHp3K06tTL/4voTQM5gU7wWtCbIhs=; b=Inv3StpjCDpUqL9Nc7H8CwXNqacYYiwZmYZWv2W5m+DJ9J9pvGUPB5kioDsRkXgNpA /EXOjzeaWlL1ZKUcI1/94pUOpIqhm3d0kcfGBX5gPtojYGNL43ey7xs5j3yrGQQzyLsT SDq0G4gM+Z7p3EjZ4HBoIn8Xx6vgPNOExY9KExBzQtFQncgdHHx4+dL8hcNIfxZYA/OU ogtPMDXdHZBA6RlM/SsHCM4y703iAapT1/Pk9NHPuoZVvpfyHrxFyr3MznwCEtqlU0G4 hfmA0L9j/Y7JBo8BigzEgh+H13gY6F8tQzT3V/Ow2UDerCMZDSEDhOAZc4IxJClvIKiA Ierg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X9oY7LgK; 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 mp39si3283989ejc.596.2021.02.25.01.46.14; Thu, 25 Feb 2021 01:46:38 -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=X9oY7LgK; 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 S235203AbhBYHyz (ORCPT + 99 others); Thu, 25 Feb 2021 02:54:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234146AbhBYHyx (ORCPT ); Thu, 25 Feb 2021 02:54:53 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41A4FC061574 for ; Wed, 24 Feb 2021 23:54:13 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id o10so4442315wmc.1 for ; Wed, 24 Feb 2021 23:54:13 -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=/YTWgHJSzDoLcdRHp3K06tTL/4voTQM5gU7wWtCbIhs=; b=X9oY7LgKI8IICMXKkoWol/GMZJkZNjUPRisxcOjqbWEpjFZo+59sbSQqp9xe7+GGw1 /wpo5nXwa8TfzQEMX4dcNmXllvS5Omeg3Cwcw1dZ2Nz8EYDKLgib3SZxKCDfUKsCvKmN /JdKMqfEdj2mLW/ksaGxa9gfnluFw05I6olmE6lBSloHxBdp5CEBBvC0f+Jn2VsOMpe6 KCrrxQR9oBNya4XpjW5MeIAjfkDJgvoR/IjjKwDmhsUBTD3IfFQXzoamqHXLji4Aq1XG bE9u4P1NnQ0E40JKsfchTMEXK4C02EfDDC9Y6akI0AJz142TgN1LII4XHIc282lpcu5t hAvQ== 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=/YTWgHJSzDoLcdRHp3K06tTL/4voTQM5gU7wWtCbIhs=; b=KGK1rq6tHcoo8XgtBLnz8/MVzHrv8XmoGjo9DQzbbuqd86mqqooCllilw8aZD3ipTM Lo0hUEUwbflYfkc068ABKxNFdMPwNdcbSf0Byaobiy1FPSRgQ3kfTdtlFRhcJNpuYa6z hVNzu4BVBXDBvCP+PKM4MN8cWYVmKPH3zFhAe0rbilN+ZIpEeydoWkV+ZkfVcscenuv7 gu+xk1DQ17sjpKhiEBwuSGg08rUyt5aKgoEtxrucKAgSA9GfSBJ65axgygL0HqoVf7GW 6mZzMvyYzbPU5jBvPwpPnoIdEHY7neT2QhqHXfgwJ95VSrOSWpM5zutl3r4ZT0C/j8R5 Z5hg== X-Gm-Message-State: AOAM532OaxB5Za3cCeva0z73dMd8NwVpKn1edh3zGzXOTWGolf1869cE M8oV4AGl4u8RdZYDHmzMcXU= X-Received: by 2002:a7b:c083:: with SMTP id r3mr1904293wmh.177.1614239651927; Wed, 24 Feb 2021 23:54:11 -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 z9sm6873830wrv.56.2021.02.24.23.54.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Feb 2021 23:54:11 -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 v2] nand: brcmnand: fix OOB R/W with Hamming ECC From: =?utf-8?Q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= In-Reply-To: <20210225084838.34bbdbff@xps13> Date: Thu, 25 Feb 2021 08:54:09 +0100 Cc: Brian Norris , Florian Fainelli , Kamal Dasu , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, bcm-kernel-feedback-list , Linux Kernel Content-Transfer-Encoding: quoted-printable Message-Id: <4DF5654C-1412-4E89-BF21-60C649EEDF4F@gmail.com> References: <20210222201655.32361-1-noltari@gmail.com> <20210224080210.23686-1-noltari@gmail.com> <20210225084838.34bbdbff@xps13> To: Miquel Raynal X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquel, > El 25 feb 2021, a las 8:48, Miquel Raynal = escribi=C3=B3: >=20 > Hi =C3=81lvaro, >=20 > Brian Norris wrote on Wed, 24 Feb 2021 > 13:01:13 -0800: >=20 >> On Wed, Feb 24, 2021 at 12:02 AM =C3=81lvaro Fern=C3=A1ndez Rojas >> wrote: >>> Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for = Broadcom STB NAND controller") =20 >>=20 >> FWIW, I could believe this was broken. We weren't testing Hamming ECC >> (nor JFFS2) at the time, so it could easily have obvious bugs like >> this. >=20 > Right, you should probably limit the backport to the time when raw > accessors got introduced/fixed. What do you mean? Those accessors have been there since the first commit = (27c5b17cd1b10564fa36f8f51e4b4b41436ecc32): = https://github.com/torvalds/linux/blob/27c5b17cd1b10564fa36f8f51e4b4b41436= ecc32/drivers/mtd/nand/brcmnand/brcmnand.c#L1896-L1899 >=20 > Thanks, > Miqu=C3=A8l Best regards, =C3=81lvaro.=