Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4697839pxb; Tue, 28 Sep 2021 01:53:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1ys3y9KgpBFetbg2Ur3ajKPek8r9Qm8RxQC+sowO9HbaBjN3uwiAYRXu+WL73Odh3rZvI X-Received: by 2002:a17:906:25d4:: with SMTP id n20mr5390093ejb.399.1632819198781; Tue, 28 Sep 2021 01:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632819198; cv=none; d=google.com; s=arc-20160816; b=0anDzUfcAaRvl4XpuPmzikaCpyJZ5Mm0vhzyizCeRoqA60zWzqIL1/01e+EWcoiD1f FhNplMm6Sq7LhK0kvkYmEJfxa23JYKmmjawpccA0jPCwZjFum7Ds2Ew2k8620QSkT9Tm e54DjWV64lNDPu54fOQlzuwo4hlcRPmPiPRAMIy++W/VCkPgSkll4DGtVb8G3Mm1HkCa 6WZ+LSJTVEMuvR/kJpY1+NRRXXgjQSJg8wuU9n8zhXd/aUjvvgEkf3l/xoYCR/0gj/zV Kmr7+uCnCboIALnPLzhg+z+zueu8D9jy0d0DTZ0oj/hmaXIfz+sEmMs29CVx3w6v7kHo 5xgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=3pkj8C9SA9ULrjybJ8iT21xh09k/0xcHqpz4WRnzvsY=; b=fVxV7UlBRuaCUxX0m41P/4MUZ/4DpO+t1Lq+wvl8bQwf7GEaqT3aQfhNXhE2254YYp seYfSzZTVYMNDuv9zgmgPq/XR3bOhPzShgw3/ubeXFQDJXlhtjkcVypjVOMSLXnBjOzV 8gz6qi0RZH2QrHcepkYkOT1OLrFKiryv2TgolgvO/pjaZVD4vNHAasby9M17AnpPBvFg d/PGtAkITRlcX+L59bILIBN4dsvjb7q7YXdeuzAx9er8vYva3RDPNfntXz2AFNHoypim ZmnK9qF9GS6wpWrZQRnzbY5cA7q0iP21eHztiM8QsfFEg2ghSBPZ+ZeOmz5oVoIaCfgM qqDw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si2675704ejc.431.2021.09.28.01.52.52; Tue, 28 Sep 2021 01:53:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239618AbhI1Iu5 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Sep 2021 04:50:57 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:38017 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235918AbhI1Iu5 (ORCPT ); Tue, 28 Sep 2021 04:50:57 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id DD91540007; Tue, 28 Sep 2021 08:49:15 +0000 (UTC) Date: Tue, 28 Sep 2021 10:49:14 +0200 From: Miquel Raynal To: Jan Hoffmann Cc: Daniel Kestrel , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mtd: rawnand: xway: No hardcoded ECC engine, use device tree setting Message-ID: <20210928104914.44a90b63@xps13> In-Reply-To: References: <20210808072643.GA5084@ubuntu> <51f2ebf4-6df1-eba5-99f1-1ec88e475d20@3e8.eu> <20210917190154.76203a9a@xps13> <20210917213246.319e60cb@xps13> <14eb0cb7-b0af-87bf-b9a5-3e35eeb43f54@3e8.eu> <20210927183150.4be87140@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jan, jan@3e8.eu wrote on Mon, 27 Sep 2021 22:32:13 +0200: > Hi Miquèl, > > > So what I propose is: > > - in the driver probe: set the default to software ECC > > - in the attach() hook: drop the line setting the engine_type to SOFT. > > > > Please check the below diff and tell me if it works for you. I'll then > > propose a wider series fixing the other drivers as well. > > I can confirm that your patch fixes the issue. > > I tested using kernel 5.10 on a Fritzbox 7362 SL (with on-die ECC > configured via device tree which was broken before). I also checked on > a Fritzbox 7412 (this device uses software ECC). Both are working with > this patch. Great, thanks for the quick feedback. Cheers, Miquèl