Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp406162pxb; Wed, 1 Sep 2021 01:20:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRrfcH1Se9A+tFIkp0/Q2wkE6JbPnPJHzRBGDieoQ1ytaaFPZ2BFYbDaxM12p96LYa5ktF X-Received: by 2002:a05:6e02:104b:: with SMTP id p11mr23464362ilj.21.1630484442644; Wed, 01 Sep 2021 01:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630484442; cv=none; d=google.com; s=arc-20160816; b=ukd7XJkYpntqZgd82XWw9JPuEoRSH6LUEAZXhjFk/Z4GyTm3cSkhJNH8z/76Ryh5qj Yl8sVG5A7wiw+8/3HkC/AeDHhw80ADAA8eglj+iJFyD3Mr1y+gBND2/LlFTpT5dKUZzW 20tfH+skFEWvac/v4VPUWiVTMa6BRQkZiUeGRoBbEAPUingbTrra2Gu5Ce4G9FZIQ9NQ pGOXm/BR91S9+MDcze/fwtjR0019Jj+rY+aPMSP1ZqRIVUiMSVE14mwwUHLKrS4M3NYG vfyNNgn1IWfNMGoy5zqRydyQsvnlz2zvkKrhTZtNpMXSki2zQoNa7mz4DFmbHJvdRsm2 n2RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zwKSvosabEuG1S89FFsv32pAe2L5ebpHz2AX8f13dwM=; b=sX9A9Hcr9TtgeXlL43/Sxb61CG+9JJkVH/7yVuCSGF4V9EgJwTUN2lpadgFljswbWg BKBhH72GadRZ1Z/+9wibUiMslXC0DCDw0P+gtkch+zvdyOL5idUDvMnPP62Jtq1CZzB0 H2VMrEN+dgLLsSzXa8cLGIdkfR84/cs+Mwy6ETUhFj6lymI+t2O12wNBtqFa+zodGnXg 7sKbFiYEqHGAOW51xqLz1pmtaEiQEOfFuc7fYTIT/eA+xnZACYx3cBc9RUCfCwy/PZnq /SxoFGys608jULGYMUviwSydToYreGkYv/XFV7yir3q4a7+etVZBugfM0XT7i5iXnKoM 7m8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xIZkGOmG; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si20244706ilr.113.2021.09.01.01.20.24; Wed, 01 Sep 2021 01:20:42 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=xIZkGOmG; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243004AbhIAIS7 (ORCPT + 99 others); Wed, 1 Sep 2021 04:18:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:58632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242911AbhIAIS6 (ORCPT ); Wed, 1 Sep 2021 04:18:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A9F8760698; Wed, 1 Sep 2021 08:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1630484282; bh=GN6JRgy0rHxRTizsSUkISXXfC+FJ/NBJUSoc2dRDr7g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xIZkGOmGCE/bunr/cFptL+5FjMPJ7LXz1r467yWZRHpobP/JKN4rq8eN8UcfHwo5T y8LATeNg6XgS82riUxzVxhzN3vD/httFgED35ka2QI/ZXDhPRqc1O7l733i9624Xtm BFnK5IA+FW6ejqllALDbXeFkwzPqX3HZd6eNTjlQ= Date: Wed, 1 Sep 2021 10:17:59 +0200 From: Greg Kroah-Hartman To: Frieder Schrempf Cc: Miquel Raynal , Frieder Schrempf , stable@vger.kernel.org, voice INTER connect GmbH , Alexander Lobakin , Felix Fietkau , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Richard Weinberger , YouChing Lin Subject: Re: [PATCH v2 5.10.x] mtd: spinand: Fix incorrect parameters for on-die ECC Message-ID: References: <20210830130211.445728-1-frieder@fris.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210830130211.445728-1-frieder@fris.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 03:02:10PM +0200, Frieder Schrempf wrote: > From: Frieder Schrempf > > The new generic NAND ECC framework stores the configuration and > requirements in separate places since commit 93ef92f6f422 ("mtd: nand: Use > the new generic ECC object"). In 5.10.x The SPI NAND layer still uses only > the requirements to track the ECC properties. This mismatch leads to > values of zero being used for ECC strength and step_size in the SPI NAND > layer wherever nanddev_get_ecc_conf() is used and therefore breaks the SPI > NAND on-die ECC support in 5.10.x. > > By using nanddev_get_ecc_requirements() instead of nanddev_get_ecc_conf() > for SPI NAND, we make sure that the correct parameters for the detected > chip are used. In later versions (5.11.x) this is fixed anyway with the > implementation of the SPI NAND on-die ECC engine. > > Cc: stable@vger.kernel.org # 5.10.x > Reported-by: voice INTER connect GmbH > Signed-off-by: Frieder Schrempf > Acked-by: Miquel Raynal > --- > Changes in v2: > * Fix checkpatch error/warnings for commit message style > * Add Miquel's A-b tag Now queued up, thanks. greg k-h