From patchwork Wed Apr 17 07:13:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Hauer X-Patchwork-Id: 1924512 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=herytA4Y; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VKBwX3fdNz1ybJ for ; Wed, 17 Apr 2024 17:14:04 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tCx32Mdy3kqQjYh2XZc3/J1gBvxCKSkhnv1SxMDbMZ8=; b=herytA4Y6z6jvy NvEMFBj9k1i4yXmaw/kFXQgTVxlJV3CvhwBC6QCoPvviQ/8VoJqYxG/e2bB+FvUhoQd5GM9UuTTpY jWVUgEG3FCiKb3WCTnjeYK52MsB6R6gWsD8E5yblAu2hVCXPWwm1lPKRQ7KngPWH4BN/SluUiPkUp X8paw7LVWosw1SxirUuCN+iF5Z4PwjO47ODkRT3VK/gjgxFDDz+QO74RhsTO4qs0UHQgoWhpyBzFl jb8YN79iv5FbnkoB/LFcrsTq63OAvxofvoiRZ59H0yftH0N7L9DQWU3dXDUpgoaS4yQwJahJ885g+ kZoDF2NxBOGK49Exyahw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwzUN-0000000EzNN-44Mr; Wed, 17 Apr 2024 07:13:51 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwzUL-0000000EzLX-1AH0 for linux-mtd@lists.infradead.org; Wed, 17 Apr 2024 07:13:50 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rwzUB-0003W2-EM; Wed, 17 Apr 2024 09:13:39 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwzUA-00Ckan-Ai; Wed, 17 Apr 2024 09:13:38 +0200 Received: from localhost ([::1] helo=dude02.red.stw.pengutronix.de) by dude02.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1rwzUA-004DbZ-0U; Wed, 17 Apr 2024 09:13:38 +0200 From: Sascha Hauer Subject: [PATCH 0/4] mtd: nand: mxc_nand: Convert to exec_op Date: Wed, 17 Apr 2024 09:13:27 +0200 Message-Id: <20240417-mtd-nand-mxc-nand-exec-op-v1-0-d12564fe54e9@pengutronix.de> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJh2H2YC/yWMQQqAIBAAvxJ7bsFSUPpKdCjdag9aaIQg/T2p2 8xhpkCiyJRgaApEujnxEap0bQN2n8NGyK469KJXQnUa/eUwzMGhz/YHymTxOFGaRS5GWCW1htq fkVbO33ucnucFA9omhGsAAAA= To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Sascha Hauer X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713338018; l=923; i=s.hauer@pengutronix.de; s=20230412; h=from:subject:message-id; bh=BmEr6PI9JmP6srt84r2Hs54N86dOzRtv6ztVCh0F30g=; b=y2YQOTHK2FkEXTJ1pkQQTy8Gb6++35MsVfFqBGxixH90xHYNEquICdXd5uPblhOl2uFNWN0lm 3cf5/X2AHsrCXT93eqWpIgWOaIMLLLtX4p2mtAnrS/8I+cTViqwIrD8 X-Developer-Key: i=s.hauer@pengutronix.de; a=ed25519; pk=4kuc9ocmECiBJKWxYgqyhtZOHj5AWi7+d0n/UjhkwTg= X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: s.hauer@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mtd@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240417_001349_356402_C6725C8A X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This series converts the mxc_nand driver over to exec_op which gets us rid of a bunch of legacy code. The motivation for this series is a board that has a NAND chip connected that needs 4bit ECC where [...] Content analysis details: (-2.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2a0a:edc0:2:b01:1d:0:0:104 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This series converts the mxc_nand driver over to exec_op which gets us rid of a bunch of legacy code. The motivation for this series is a board that has a NAND chip connected that needs 4bit ECC whereas the i.MX27 hardware only supports 1Bit Hamming ECC. With this series the driver now supports software BCH ECC. Signed-off-by: Sascha Hauer --- Sascha Hauer (4): mtd: nand: mxc_nand: separate page read from ecc calc mtd: nand: mxc_nand: implement exec_op mtd: nand: mxc_nand: support software ECC mtd: nand: mxc_nand: disable subpage reads drivers/mtd/nand/raw/mxc_nand.c | 568 ++++++++++++++++------------------------ 1 file changed, 219 insertions(+), 349 deletions(-) --- base-commit: fec50db7033ea478773b159e0e2efb135270e3b7 change-id: 20240417-mtd-nand-mxc-nand-exec-op-38b3b80c4377 Best regards,