From patchwork Fri May 13 09:47:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander A Sverdlin X-Patchwork-Id: 1630600 X-Patchwork-Delegate: p.yadav@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=xVO8uFTD; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nokia.onmicrosoft.com header.i=@nokia.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-nokia-onmicrosoft-com header.b=omHjmW+9; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L03kh0sZKz9sFs for ; Fri, 13 May 2022 19:49:00 +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=/RJY+DPMco0YjYDp1O8aP2fewUlfDHMGCWLcLyuD4es=; b=xVO8uFTD+WuaLu WlSA1KAboBC63DYLfpWcs+ryCjRWLvBEBKxwfznZvfEiVuiBUYwHu18Y6W8CCyHdxXXO8YMS/T4Z7 HQkSk4nfrnyoiUQizATc9lE5eHE5a7hFMNHkSTwhTSvUTq2eFz0DT/MHxuZi7T1w7ZfE+YV+TfvJm n6SRSAS/hPUqI+0kFTgpCpsqH0S94/l1rurGXh8c7ntT80OEKyV/P1mhco18zKDnmrEGuxUK19j39 HB3EO8epJ6//Uysxd7GFBoRqnPIBvzmYqpXd3LOWOCtNqpHVhvsOpt0/rbqpVjSb/h3eDOXLgxpoh 6TQyVGUEQgfYwK1z0quA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npRuK-00FPqq-DK; Fri, 13 May 2022 09:48:24 +0000 Received: from mail-vi1eur05on20724.outbound.protection.outlook.com ([2a01:111:f400:7d00::724] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1npRuH-00FPnM-4Q for linux-mtd@lists.infradead.org; Fri, 13 May 2022 09:48:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hVp9oy31Vvu7o1I8rPSbyyPdHKRktM7omOINOgKQ1TlkEin9DA8C8BbDExqr8XLMkEEIBDgdhnerUQJQDnlPKGeugFAugsPUqxOBF/qz2fa5N9X4JFqWuuRkI4+qliBHcE+O/NNeCSp2Uo96Z2E0q86LK9AbEmrIOq/6DRzVJcwM5W4LjgPS8G/+M1HmFgjuHtCPZfgiaQIMx3vH5GhYw8CO/UZpIupGd8G/e3u30xXILDUzvS/SkHMKqmxd9/Qikae8+0vM33ipKdeB0W9YdoyGgzGylCVWxwKLFhgHLNr4kNpypJy4CBaz/obxhZ1q+9ICsBtmuMaEaUtic2hmoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jJKw3le/DXTx7hmHQK4wnN7e2Qjdq5ip5UN/3aSoJsI=; b=ar8ZaMegsto4q3deTW02UpqUlfxTsVeLJ2aPS/a891JCLf9UbXLSvoMGsMRW2oqb5rxPtzwADnJFlh4HTBZ3/C8uOvhDWjy0Qcu6sMw7iF1f/p6vligj+JJqYqkHo0qmCBqLZCXBszeH1e1IX75l3y8aG2PCxBZYiBLAvcycik9pmDz1vSnortgk8fq0F1CDqjjftZvZGdhlO6ZRkZndOatW9/iVTPwHy8UmGJ9idIMKWBBrUD5qSTmSOVR0f3yDOU8YWZwTeSysJQJOh5FKJHZrbQxde4dx6V8wxyVhG/OV2FDYItDjSiviGLcm/U4tv6wwVzBsH3tsbn4+DhoXHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 131.228.2.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=nokia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nokia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jJKw3le/DXTx7hmHQK4wnN7e2Qjdq5ip5UN/3aSoJsI=; b=omHjmW+9GHrhlsFBFW/MDG/eCuiGISeUPiwKSzXtUIUyFRI20LE5TH+et4dddMFxIV/0ktvEvMZiYRYSZUU2Fh1SbELjXW+/uld/7DADdlkNaA4o/ZXyJlayHcnQWPEogs9r5Rn95Ew8KhkOAnsfaUWo6/orijs38kRGZOQjydc= Received: from AS8PR04CA0128.eurprd04.prod.outlook.com (2603:10a6:20b:127::13) by AM0PR07MB6049.eurprd07.prod.outlook.com (2603:10a6:208:11b::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.5; Fri, 13 May 2022 09:48:15 +0000 Received: from VE1EUR03FT050.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::f9) by AS8PR04CA0128.outlook.office365.com (2603:10a6:20b:127::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.15 via Frontend Transport; Fri, 13 May 2022 09:48:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 131.228.2.17) smtp.mailfrom=nokia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nokia.com; Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.17 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.17; helo=fihe3nok0735.emea.nsn-net.net; Received: from fihe3nok0735.emea.nsn-net.net (131.228.2.17) by VE1EUR03FT050.mail.protection.outlook.com (10.152.19.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.13 via Frontend Transport; Fri, 13 May 2022 09:48:14 +0000 Received: from ulegcparamis.emea.nsn-net.net (ulegcparamis.emea.nsn-net.net [10.151.74.146]) by fihe3nok0735.emea.nsn-net.net (GMO) with ESMTP id 24D9m8WC023390; Fri, 13 May 2022 09:48:08 GMT From: Alexander A Sverdlin To: linux-mtd@lists.infradead.org Cc: Alexander Sverdlin , Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH] mtd: spi-nor: Support Dual and Quad Read on Macronix mx25u25635f Date: Fri, 13 May 2022 11:47:59 +0200 Message-Id: <20220513094759.44185-1-alexander.sverdlin@nokia.com> X-Mailer: git-send-email 2.10.2 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 57a17b7a-eead-4372-4816-08da34c5b368 X-MS-TrafficTypeDiagnostic: AM0PR07MB6049:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /7WAwVGOoyzTVEVbBAQPbG7fkHJ+7P5cbbyL6Gn+U9peeQLIfbN086iyoMorVIzek13124Z82lqCImAolvq2vAjkIdyfAvl0xKFFT2ZBhXOcISnltUNoCC/ua5i4ZdSIqNrpYycqVSx88HXi8LuBQnRQR0Ho3BOssVhzOsy6hUn+Tk6jL1YY1Y0B0kQHcGHW88QsF3UoFmE9W1N54ofaKwUfQ4Q/somsr7hkd5a+IZey1OGbc3SCOvt0ZPa4QuI22LCHwY+bBDpL3iKopBQfCpg2JkVBqd6nVnljnQC+SfMXKigjfwDz94ubEobAs+4Upg8LjlsffiyRlPH0IhxEeCKKAnVKh4cnIoG3EW6eneH57OAUmTM6Q/kLU+DPGSlglQjrjR0+tOisN5xXt8vesAGF13QDyWw9XekdUlaoDEIkhroWtNOcmwFhm2WaMWIUPK3JBxW+xOD123KFja81pow82CuInmGi4tUty65be19lWvVjQobrNX5chdxgFMaHh8P7xBl8CTkNx+1cTuc2eRaWpDCxUwht5l4ipf2IpIp2X9aFF3AonRrsbkc5wG6ytHYdMj7DPCyM702cQfuA8Pyk5B0xsSQ+zwh0mKMk1mXmC42wG7RddXpM6wBs1KjhThB/WB4YzHZwJXo6wrmJ4srqhv8yEknfNHwqJGaldmzAyq6qFaGOEnWieB31FPm7jgdpmnnbgxFVxZJWdfn3RQ== X-Forefront-Antispam-Report: CIP:131.228.2.17; CTRY:FI; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:fihe3nok0735.emea.nsn-net.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(86362001)(36860700001)(36756003)(26005)(356005)(6666004)(81166007)(8936002)(1076003)(40460700003)(508600001)(83380400001)(2906002)(316002)(4744005)(82960400001)(70586007)(70206006)(8676002)(4326008)(2616005)(336012)(186003)(47076005)(5660300002)(54906003)(82310400005)(6916009)(36900700001); DIR:OUT; SFP:1102; X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2022 09:48:14.8722 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 57a17b7a-eead-4372-4816-08da34c5b368 X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.17]; Helo=[fihe3nok0735.emea.nsn-net.net] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB6049 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220513_024821_434392_86ABC8DB X-CRM114-Status: GOOD ( 10.44 ) X-Spam-Score: 0.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: Alexander Sverdlin According to datasheet both Dual and Quad Read is supported. The read test shows x3.8 speed gain. Signed-off-by: Alexander Sverdlin --- drivers/mtd/spi-nor/macronix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (0.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 [2a01:111:f400:7d00:0:0:0:724 listed in] [list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -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.0 FORGED_SPF_HELO No description available. -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender 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: Alexander Sverdlin According to datasheet both Dual and Quad Read is supported. The read test shows x3.8 speed gain. Signed-off-by: Alexander Sverdlin --- 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 d81a4cb..cad9112 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -77,7 +77,7 @@ static const struct flash_info macronix_nor_parts[] = { NO_SFDP_FLAGS(SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) .fixups = &mx25l25635_fixups }, { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512) - NO_SFDP_FLAGS(SECT_4K) + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, { "mx25u51245g", INFO(0xc2253a, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)