Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5415475pxb; Sun, 7 Nov 2021 11:47:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2ql1GC5lPQ18f8/VAIBabkq7bKclxx9pqEwnvqJWpEJhs3OtjJPK0zp/vuc2iVc/okngw X-Received: by 2002:a05:6e02:1606:: with SMTP id t6mr27057166ilu.40.1636314461966; Sun, 07 Nov 2021 11:47:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636314461; cv=none; d=google.com; s=arc-20160816; b=MdEevY7Mi0d/2F8t3gk6SdAIwfYBQHrVI07ZIYUY+0AVvbybV98+5DbmrNh9cyoV9z ocutP1WW8vQTK3k2x7ZJPWXaJs8bIRBN51IEQaqkTaoMMrb3Efm6VT2jRoGbIy6L3YMw dGApxWMNkyCpGGIZ0R1DnT5P7zdR8V0L4lte9NKg/p/DFQ/AtudP893KrKIrTbuMEkz8 hjWz5zUE0Mg2V6hqFvHtT0ozqko5tXNpfOcqM6LDDjBT1L0ZtkLPujBtBrVmYRPHuLJN KFP7VcMWSjF+ntvMpgy0+Fd+n5imMnw8RoKrYhAkwXIPS3iJ06HAhDR2e+raYvUezvNG 2N5g== 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=0iOoYrlW0W1dhedF3b0qomHYAYJFS+pAzW9ZnnfcvEM=; b=yBAd3W/IFIXCYilCEYTxU4GN7HIHnt3mtd06wiuIAgWm9VtS/SZriPgzi7nvd91+cH WbSdN5q6AJxTUeFnepXSKC+nfV6W4tMIs3266+uk8+/u9L2Ql5k9JmVUSM6fVvwAu2tg ydqeBaikTs3+uWsb1SZ9BI+20wm6eVL7nMmC0+gJh9rXmxvHw5UvMuncmju/41LMmglB SFoNi/DkhxaX+vCJKPxUtFxdblO4F57bTNm/On0+Wgnt0khaMv0oul6sSbpfSF8nK9dZ 6TQrX/X1UjIK5CKn37XHzpH5bG9z14pOG6qchCPkz8HK/PVrsmem+vtxsaiJ1C3b0uBB irGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=PsCDzRfK; 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 n3si19180452jac.29.2021.11.07.11.47.29; Sun, 07 Nov 2021 11:47:41 -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=@goldelico.com header.s=strato-dkim-0002 header.b=PsCDzRfK; 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 S235431AbhKGNun (ORCPT + 99 others); Sun, 7 Nov 2021 08:50:43 -0500 Received: from mo4-p03-ob.smtp.rzone.de ([81.169.146.175]:30696 "EHLO mo4-p03-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbhKGNum (ORCPT ); Sun, 7 Nov 2021 08:50:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636292865; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=0iOoYrlW0W1dhedF3b0qomHYAYJFS+pAzW9ZnnfcvEM=; b=PsCDzRfKVtGOtujmTnNxjNWxdh5si21K1/0L3pjFbeDOtzzbquY26IRSsHOlz+g33M m+4jZNzQkrBVcyMt81/av2wJIa+xcb9Mxo5SQQBUf4aXT4fiS0d7eLEzEQdxvnw/H3kP o+yXXw1rembp92Ue3DbQbSbvGNCjRVkmCs4rJtsuU6umJEtJL2GuffpiUwu5BbZctWDc AEO2lok8oa3eI06aG0SsaY2lHi0A0iNB3lGMlgNfcR8TGTxi+Mw+pmuEDkmdQFEhz4sA SBLsBH1dRqYramJpqMvQyFDNnXYiDnX5SSxFVTX3I+Xos20aOhM8GATKkWSBTLStXd4M Brhw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7gpw91N5y2S3jcR+" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.34.1 DYNA|AUTH) with ESMTPSA id 902c63xA7DliFoQ (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sun, 7 Nov 2021 14:47:44 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [PATCH 0/3] mtd: Ingenic NAND fix for JZ4740 From: "H. Nikolaus Schaller" In-Reply-To: <20211009184952.24591-1-paul@crapouillou.net> Date: Sun, 7 Nov 2021 14:47:43 +0100 Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Harvey Hunt , list@opendingux.net, linux-mtd@lists.infradead.org, linux-kernel , linux-mips , Riccardo Mottola , Discussions about the Letux Kernel , Paul Boddie Content-Transfer-Encoding: 7bit Message-Id: <968356A9-2A88-48B1-B31F-55C22BCE620E@goldelico.com> References: <20211009184952.24591-1-paul@crapouillou.net> To: Paul Cercueil X-Mailer: Apple Mail (2.3445.104.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, > Am 09.10.2021 um 20:49 schrieb Paul Cercueil : > > Hi, > > Looks like NAND support has been broken on the JZ4740 SoC for a while; Yes, I remember someone telling that something was fundamentally broken and impossible to be fixed a while ago. > it looks like it comes from the fact that the "hw_oob_first" mechanism > was dropped from the NAND core and moved to the Davinci driver. > > It turns out the JZ4740 SoC needs it too; I didn't notice it when > writing the new ingenic-nand driver (to replace the old jz4740-nand > driver) most likely because my Device Tree had the "nand-ecc-mode" set > to "hw_oob_first". > > I am not very sure about patch [1/3]; to me the original code does not > make sense, and it didn't work out-of-the-box on the JZ4740 without it. > By applying patch [1/3] the function nand_read_page_hwecc_oob_first() > can be reused for the JZ4740 SoC as well. But I did not test patch [1/3] > on Davinci. would this also work for jz4780 NAND? BR, Nikolaus