From patchwork Thu Oct 24 11:40:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Pancholi X-Patchwork-Id: 2001653 X-Patchwork-Delegate: tudor.ambarus@gmail.com 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=ZkwM78fZ; 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=EOB3W+tT; 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 4XZ46F1gC5z1xwy for ; Thu, 24 Oct 2024 22:52:37 +1100 (AEDT) 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=nGpzD7YGzqw6YsKHqm1C6dirtNu3RDKVopTaNA6V2IY=; b=ZkwM78fZN0UWBK jlK8WnZzWmbdqzJf6B4VHz0hzPk/Ena/hG6PsyweYviqWMZEPoxqunWcH68lTEkRXdH46AeCAk0r2 Yyq9fgpp6gPWupGlh9uUvstZIVtcmo6P5OVCTO3l1l4ied0kYygr1gZajy3CTVkfSHci/dLszOjvr S/hCdSotAE2hHPjNwvLJ6dIYl/seM/i4KO+UWFci0s68gz02zkHXGME0m/sDO++pPIk1jKkd/uMkp pzwdIce7NM8Vd/odn4Ff9LKYDSedkTyAAt/kuC44jVbAkZOUIufENzQok399VOw6BG8Rc0k4Oiy94 rp6PG3FOBCsTAXSqfvEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3wO0-00000000FzA-3RhA; Thu, 24 Oct 2024 11:52:16 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3wD5-00000000EjX-261o for linux-mtd@lists.infradead.org; Thu, 24 Oct 2024 11:41:00 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4315e62afe0so8500055e9.1 for ; Thu, 24 Oct 2024 04:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729770057; x=1730374857; 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=idzdbKFgsUG7OY55yXSHUR0pooUCkPncNXEk/U6JGi8=; b=EOB3W+tTmjrd77xboG65kPsVvkZVZrtxdqukic/iQ+OqgIUKY4A5u8q4qdOJnnZNNV zzr6JmpNKvMpOVPgXFWPWLdV3jhVLZfsb4IEv9LVXDQFAFo7xJMxRUASdj4NdvbcSRQX q69HXD77r9y64D6dtbdrpiyDFqwKjZUXBa5pGmuwW6pdl3iMWwmd27Vb+Aydc3+8DI5Y itZcnpQuegdV4OoKSo8elzxYBk48B7/x/M4ryMRv5fKlgV3qil9z5PCWwYHZOTgcdUoo 3kWhOYYwvzXIyGBcQ9IhmOaASBb2bASIn9CDblpvjBcE2xG5qh7nP/cLYPYj5eaYbCse /RYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729770057; x=1730374857; 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=idzdbKFgsUG7OY55yXSHUR0pooUCkPncNXEk/U6JGi8=; b=CGORWrKnJMAiXvZPBOftDNS0kkCggLAkm3/i0dPLECk2jzQRsC7vHSExVHHTQoyDdc 9gsDSNM54DAGj7tii8JxpJKLurdmf5hX9aSXhhfgsHa4vjr2XRfvuSQfTFr6OXp6cZL3 Z0UTLiswC/+5HyhgvdawKY61ytw8Ev2XJBJAJSk/TgTDfKndFOpbu1R2LS45WsnS+S+w eu5Z1z8QX3AQgItb7n/L2I/1UYGRaakbXcO9UQI0MCMjtzNov8A5PoIZxq2Z2sZ8UUyi xbKnPzcf6IEjlh1uLpqWLms8bAuvgS9T6hcq9z2rYM5t/iAaPFP205yK7fryt5hWtSue Q0TA== X-Forwarded-Encrypted: i=1; AJvYcCW5KZO486p5cpb09q300VwbwzhwcKIsBnq/KRjxuhRyNjfEJ9nO6iYCkh/wriGScV2oEMhj0Nn1iQs=@lists.infradead.org X-Gm-Message-State: AOJu0Yzu522/T7AKf2eQ7XV1fzIWgPBTj84vQDcgAT4NOQ+YOX4R/lSN YQXwQ+auWzZwMBzWhUKFP8/mf7RzMmxxOXf1mvd7guTiDzlCM1L+bAMpBiC+ X-Google-Smtp-Source: AGHT+IFCf69WqMZ4s8O5S2d78OdM8YtP+bJ7yi9UW7qwMQdIAywbaUYKtN2mQ9IT6hphj1T44Cy3xQ== X-Received: by 2002:a7b:cc88:0:b0:431:1a98:cb40 with SMTP id 5b1f17b1804b1-4318d7f2fe8mr10377555e9.18.1729770057089; Thu, 24 Oct 2024 04:40:57 -0700 (PDT) Received: from partp-nb.corp.toradex.com (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43186bde267sm42396385e9.13.2024.10.24.04.40.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 04:40:55 -0700 (PDT) From: Parth Pancholi To: Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: Parth Pancholi , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mtd: spi-nor: macronix: enable dual and quad read for MX25U25635F Date: Thu, 24 Oct 2024 13:40:21 +0200 Message-Id: <20241024114021.17567-1-parth105105@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241024_044059_568205_858E4B2F X-CRM114-Status: GOOD ( 13.65 ) 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: Parth Pancholi The MX25U25635F supports dual and quad read operations. Set the corresponding flags to enable these features in accordance with the hardware capabilities. This change also enables dual and quad read o [...] Content analysis details: (-1.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:334 listed in] [list.dnswl.org] 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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [parth105105(at)gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [parth105105(at)gmail.com] 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: Parth Pancholi The MX25U25635F supports dual and quad read operations. Set the corresponding flags to enable these features in accordance with the hardware capabilities. This change also enables dual and quad read operations on the MX25U25645G, which shares the same ID and has a superset of the functionality provided by the MX25U25635F. Link: https://www.macronix.com/Lists/Datasheet/Attachments/8663/MX25U25635F,%201.8V,%20256Mb,%20v1.5.pdf Signed-off-by: Parth Pancholi --- drivers/mtd/spi-nor/macronix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index ea6be95e75a5..be55558c8ad0 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -129,7 +129,7 @@ static const struct flash_info macronix_nor_parts[] = { .id = SNOR_ID(0xc2, 0x25, 0x39), .name = "mx25u25635f", .size = SZ_32M, - .no_sfdp_flags = SECT_4K, + .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, .fixup_flags = SPI_NOR_4B_OPCODES, }, { .id = SNOR_ID(0xc2, 0x25, 0x3a),