Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4288342pxb; Mon, 27 Sep 2021 13:36:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRS2N/I0BBbyrOWKrXxtRcWG4DkR0+oZpHzYSTXi87rqsw2VgXMTknl9SGYWF3WQHYJO9v X-Received: by 2002:a05:6402:c8b:: with SMTP id cm11mr2660163edb.368.1632774969486; Mon, 27 Sep 2021 13:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632774969; cv=none; d=google.com; s=arc-20160816; b=0XDL1K2y73JNMUpAAZfZNhG6ct8t/aV8xfxRe2RVfH4v7HAFz+U4kUxrgiJmKG4iDE k5e90vPMx96G4XoogH+Vdgj+ohrmemBH7UuGaAIoE9YNy+0o5KtZ+HxdSBzRGz+iw1f3 0vrEyOIZMymTILitjJCjSranN8DqtcrM2Da/jeZXvkCwbJPupUfWLhmQpMC/YV4+8gFd +//stP2O8ADe0buF61in13j3kJ9TCnkDKCZOJXVMM7TovjGe/e2dzc5cofYTfws1VG/i gVvfkNg2zTQc6mKJGHhiy0M5MUjWPh7uiGV5Od1xdbpVhJiGEDOMOfHbvhsi1MFCjhTt c2Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UzG2e21h9wHznK4ErSzXQr3B2Z0rBnjaGgUtVaw7338=; b=T4hxQg3zFHef8iX0C84mitskZg/p0Y+xxxtoWjfvinL2RUjuiIUi82eWanQGJkgena MmKeSq+UPTqVZg6nO5hQXiGPFNkdG9W6mKNefxSDaDngl9H4rfih3m8gb+EXI07fcP2Y 8Y/Z1qdgCSTBD+nO0C15aGMhtLOWCClwNeTYctZZ1cpDDdzqrV8Gq6jcTi5W+7GDXMsL 72p6Rw8MB2QWPXiEMGMOuDOXTJ1QvzeRryinVV3zS9Gt2YP1w6me16q6RZAwRrsZe4jc Wdtp78cnTpdmUA9mUOaHwk2OpYUddbrg5Yuypfh2FpB8O/v7PMJKe6XRjSixiwhNULJw GAOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@3e8.eu header.s=mail20170724 header.b=wU3KMRAR; 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=3e8.eu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l26si4232357edv.557.2021.09.27.13.35.45; Mon, 27 Sep 2021 13:36:09 -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=@3e8.eu header.s=mail20170724 header.b=wU3KMRAR; 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=3e8.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236565AbhI0Ud7 (ORCPT + 99 others); Mon, 27 Sep 2021 16:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235865AbhI0Ud6 (ORCPT ); Mon, 27 Sep 2021 16:33:58 -0400 Received: from srv4.3e8.eu (srv4.3e8.eu [IPv6:2001:67c:12a0:200::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7849C061575 for ; Mon, 27 Sep 2021 13:32:19 -0700 (PDT) Received: from [IPV6:2003:c6:cf12:5a0:9abc:9583:6f0a:c734] (p200300c6cf1205a09abc95836f0ac734.dip0.t-ipconnect.de [IPv6:2003:c6:cf12:5a0:9abc:9583:6f0a:c734]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits)) (No client certificate requested) by srv4.3e8.eu (Postfix) with ESMTPSA id 34CCF60073; Mon, 27 Sep 2021 22:32:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=3e8.eu; s=mail20170724; t=1632774736; bh=UzG2e21h9wHznK4ErSzXQr3B2Z0rBnjaGgUtVaw7338=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=wU3KMRARhKVLBtIJU4/O9B7QdFn9o+V/TbdXoH6HKqlpB8A7v0uGolJQcluqOqyIr z2UMKp0xJOarvo6AOjb/a2knT0x1C91cCKYvW/cQZkJLYT+mUVn/xBN/qaDf3VyjkO Ay7kkur+Zdm9Cp6hY+wvGSp1DRez2bq9FR74fJNff1+Oaw8afNGwwBnSTHlM3ogj7Z hbrN9DEqKcoY0HD1lt4bE+gY5dn4UnSUy2IKBGoFYh2HeIzhajPIv0R95etcZvABTz Ne41Nya86NSATxV75/dmbfEjxvdNiVGzh0b7Cih8Ypu/czqbdiLp7vJrXlIpQu1ZWR V5PS3hv+vb4NQ== Message-ID: Date: Mon, 27 Sep 2021 22:32:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Subject: Re: [PATCH v2] mtd: rawnand: xway: No hardcoded ECC engine, use device tree setting Content-Language: en-US To: Miquel Raynal Cc: Daniel Kestrel , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org 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> From: Jan Hoffmann In-Reply-To: <20210927183150.4be87140@xps13> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Jan