From patchwork Thu Jul 18 07:53:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng Ming Lin X-Patchwork-Id: 1961929 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=hHg8k7p7; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=VhT5BzZd; 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 4WPlTl5JhLz1xrQ for ; Thu, 18 Jul 2024 17:55:23 +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:MIME-Version:Message-Id:Date:Subject:Cc :To: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=35/vugMER2+39ort7dnqb7HbTcWQ+uvp6wQoLDjYJOQ=; b=hHg8k7p70QyPGi WphoAAnc191PQqlXkG6VD21Yn/OlR6J251cyM1DDM9vXXhZ+jQNHPnxxko7Vi+dOM932O/RetNIY6 RlEylfS78KoVjiWPWealCKx4qv4FmR7ohJMCnEbHfatCh3vMOCbq3khw/9F5leiKlUnV430kP7csN UESADWDe0exvkz9K322DS+5OtXvOgBlvgSEnnHsP+HlUVipa6aptXpfaZAQsoZ0KbcKWa9nxIws+J WwVLtU9TFlHz3KOPpmVooPvrHBX2U+tcCaBV6bUFCDjpn+oGcVjjJEYE6GYBQky4tCiD5MaRpOv8H jprdISQsU98++Cj8zvZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sULyo-0000000GIi6-24jC; Thu, 18 Jul 2024 07:55:10 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sULyl-0000000GIhZ-18hW for linux-mtd@lists.infradead.org; Thu, 18 Jul 2024 07:55:09 +0000 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1fb8781ef1bso5099245ad.3 for ; Thu, 18 Jul 2024 00:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721289305; x=1721894105; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZZA5IPLmrPdo1khB/bNRcx/2WhOlf5P673XgW+aShrs=; b=VhT5BzZdW4ukHmRpht7JYBbl9aZpqpzZsaBXHecpIKZJ8A5P8w/tehsUwtd4V6ZxY2 7LhJ5m/XjAFDRCdwaBtdub0zJESdIj1JbV8XJCi8+BrxPl1ErZCHLl07Ds3Lgo5MOJBr vQkRNzSR/s6zAGm8hj3FNX5w6WhARDoTrM9nLhOURvbEJaZlQGBHlWQpxuoqTwgIQ2Vw dA2lQbbqN9nEDhG/9kg6tXInc34Hb2EujggUDjgukrOvopO4yy80jwwguoep53eN9E1+ A1AB9ncZCibIUH7A4VCHj6f9NTD0JWCl8orIWrAnRxRcojSr326DxbJ7Q1nj2Gf0PWs7 Qghg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721289305; x=1721894105; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZZA5IPLmrPdo1khB/bNRcx/2WhOlf5P673XgW+aShrs=; b=tBe7rexPOqHBhK9yx9pd09NnpkYgnIbRj3ZJf3wxFi/wsg7mLEs6O1UtDgiMJG7Bqm mo0kVvTf/afYsKWGQpK/80qq686NNeNL5ZpX1P1hv98hZ0mW7ociKXxaBN2tRNy0dhls x7wmBXJWLwniQ4uvsDgBWhjrI5nj1keSk+I1m0hgwUkxFbpqdgXpf90WaUqJgi+TRvm1 4b2tUfmM9HUGJ7Hr/xbHSRy1C3e2m5dgFr7IZS0sVlLGUuthuFFQlQ34vXnHTcrxMo88 2+Y7VONWa75KvGQWQkMgQ7b0Xgq2GsyzZKONJYK4jwhismZOrmRf4cSjkyN0Z+Vr5vbq vopA== X-Forwarded-Encrypted: i=1; AJvYcCVI7zCjJezYeM1nqBUDAGh12keh+89xYlJLI2NKtn8BDGdKAdV6HIm15E331inwZ0DE9U04UHVZ97zJLaOFCxg9gOb//+3QmG0tL5sq6Q== X-Gm-Message-State: AOJu0Yz7IKx5/rVFNIzk8WD+T+xw5JdiXT6pT5Mt+5fhrd+drg1h/JM0 3OftiKldar2Nt1mzYq/liLenDYZIw4fN20b2dOpZKq6I+0NYitg4 X-Google-Smtp-Source: AGHT+IEbsSUG6Tl4S9fs21p9y8/LyN8sXplN/4SY9rbtGmpj7qnhhT0h61oCSCHp1J3h7zx1E0OpUw== X-Received: by 2002:a17:902:ce8d:b0:1fc:4b4f:68aa with SMTP id d9443c01a7336-1fc4e1361f5mr37321515ad.1.1721289305522; Thu, 18 Jul 2024 00:55:05 -0700 (PDT) Received: from twhmp6px (mxsmtp211.mxic.com.tw. [211.75.127.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fc62e57bd9sm6187295ad.39.2024.07.18.00.55.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 00:55:05 -0700 (PDT) Received: from hqs-appsw-a2o.mp600.macronix.com (linux-patcher [172.17.236.67]) by twhmp6px (Postfix) with ESMTPS id B9F5580483; Thu, 18 Jul 2024 16:04:15 +0800 (CST) From: Cheng Ming Lin To: miquel.raynal@bootlin.com, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: richard@nod.at, alvinzhou@mxic.com.tw, leoyu@mxic.com.tw, Cheng Ming Lin Subject: [PATCH v2 0/2] Add fixups for two-plane serial NAND flash Date: Thu, 18 Jul 2024 15:53:54 +0800 Message-Id: <20240718075356.488253-1-linchengming884@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240718_005507_339136_261F82D3 X-CRM114-Status: UNSURE ( 7.54 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) 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: From: Cheng Ming Lin Macronix serial NAND flash with a two-plane structure requires insertion of Plane Select bit into the column address during the write_to_cache operation. Additionally, for MX35{U,F}2G14AC, insertion of Plane Select bit into the column address is required during the read_from_cache operation. Content analysis details: (-1.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [linchengming884(at)gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [linchengming884(at)gmail.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:62c listed in] [list.dnswl.org] 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 From: Cheng Ming Lin Macronix serial NAND flash with a two-plane structure requires insertion of Plane Select bit into the column address during the write_to_cache operation. Additionally, for MX35{U,F}2G14AC, insertion of Plane Select bit into the column address is required during the read_from_cache operation. These flashes have been validated on Xilinx zynq-picozed board which included Macronix SPI Host. Cheng Ming Lin (2): mtd: spinand: Add fixups for spinand mtd: spinand: macronix: Fixups for Plane Select bit drivers/mtd/nand/spi/core.c | 7 ++++ drivers/mtd/nand/spi/macronix.c | 66 ++++++++++++++++++++++++++++++--- include/linux/mtd/spinand.h | 17 +++++++++ 3 files changed, 84 insertions(+), 6 deletions(-)