From patchwork Thu Dec 9 10:08:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander A Sverdlin X-Patchwork-Id: 1565712 X-Patchwork-Delegate: tudor.ambarus@gmail.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=4l/nmWS0; 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=yF/5+s2C; 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 (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J8qWr1HjFz9s1l for ; Thu, 9 Dec 2021 21:09:28 +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:References:In-Reply-To: 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: List-Owner; bh=FWswgClBCvDTVZPJzo0AQNWHZxMlw4EmKEuad534O1I=; b=4l/nmWS0YHyQ02 sux3O3MLH4A0zuNIPTf59x+N1RPZa+suRCpN2TqZgt8Tj7cG9gHNF2szaVZTMv4hiBZZecy9B2oYx n7URBOX+R/s3Nve+r20bRtENC2nUqK46B0t7lNtcMPRrFDqIUl2ZKpBjpHs+VLQjRPoImeJS5SeSC u3PvjOx2NC4a0QqzRtase3cCjGiMRFa0UvAECvCOQ6EONY+IiMp2SVfAUdivqTwCSpVBSbKMLNwjZ yX+rUDcpUxtCEjXMm2xv6qERq5rpCeBgx5K9yJRxfYgDMNEvoN9Dv38tRbjgMo3qqo8GNf5+3yHA5 OKtXjk0tGZ2K1+2mK97w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvGM3-00FXUs-4p; Thu, 09 Dec 2021 10:08:47 +0000 Received: from mail-vi1eur05on2096.outbound.protection.outlook.com ([40.107.21.96] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvGLj-00FXOO-JH for linux-mtd@lists.infradead.org; Thu, 09 Dec 2021 10:08:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Km80ZZ3UAXvK+KO+TP3zGDt5Hie5XY/IIqKTXxoZhmGvX/AqgWZg4sy9CHxA/VQbbWJAv4CQIVTy+CQdyuibS8sTTlXrZGPSu+5kYDDQWCc4mf1g2NyKhm8NnUYbglonB1wYCnCXfurX+CRWOG/b9ZEFX3IT+5GjcNaJDFOrsaTgi4mjDuCfHS7aP82dlCtuzhWM8iw7wAQlj4BXWluZSuVIw8XprhuFHCuyB3HeuSmQB3BiGHUdcxkGVN+Q6YswlxOr8h8PA03sIdnGAvTCte7xFJ3D/AjHZM25Q1PTD+Re4GF/OI70nCBZ63+d3NvLaxKt4yYrIlOnPVo0IKPfdA== 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=oIGDkm+XX0RwKVhcNI57y2sTlIQBCcvKIfcL+VtKeCk=; b=nqT9/ah3xF+t24Vyoa4WBhcnW4nA/zGyhAr4EbyS7e6NfNJlGoCRICsCCkGdEsYGYlF7RvfrojF3TohcThY3Cm0oPSC1WGOBZv41kJhPJd35gNtBE5u4WWMporVoUCPWeO15PS/KVOlvEsHvmVHkulIat78+AF5I/ezmM5KBQfkn6AvnuPqnP55Dpys8AsRsATVRD7kBGn9t3afSosUZ/Nm1z3jYSNC5Fl8lUfrRHV5EXTHusSRFFWKlXjwKSntvkrM3cXK5oOm+TSd9DqM2KgKbP0VeB525D/TENYPl8a6xuYz4dqXWO9XvL/o8ZFuj0hM5vDjJcarH8lw3XTsSew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 131.228.2.8) 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=oIGDkm+XX0RwKVhcNI57y2sTlIQBCcvKIfcL+VtKeCk=; b=yF/5+s2Cyso5gA8FnCt4Z2W2yYngoAbPZQ1apt8rzDE9v644NxiX9U/vvop5F5dQXVOHjynINgZ3Vl3Nw+Q19Dd+XGBawHYnVc1akJ/JiRwDl1f0MJHOF2Jo77eyjMowSzvSs+ApseFnL+6qlfjPSj3oxAbSkPhM6LywsMyS9ts= Received: from AS8PR07CA0049.eurprd07.prod.outlook.com (2603:10a6:20b:459::30) by VI1PR0701MB2413.eurprd07.prod.outlook.com (2603:10a6:800:6c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.12; Thu, 9 Dec 2021 10:08:23 +0000 Received: from VE1EUR03FT035.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:459:cafe::a6) by AS8PR07CA0049.outlook.office365.com (2603:10a6:20b:459::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.12 via Frontend Transport; Thu, 9 Dec 2021 10:08:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 131.228.2.8) 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.8 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.8; helo=fihe3nok0734.emea.nsn-net.net; Received: from fihe3nok0734.emea.nsn-net.net (131.228.2.8) by VE1EUR03FT035.mail.protection.outlook.com (10.152.18.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.12 via Frontend Transport; Thu, 9 Dec 2021 10:08:22 +0000 Received: from ulegcparamis.emea.nsn-net.net (ulegcparamis.emea.nsn-net.net [10.151.74.146]) by fihe3nok0734.emea.nsn-net.net (GMO) with ESMTP id 1B9A8HIZ012620; Thu, 9 Dec 2021 10:08:20 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 2/2] mtd: spi-nor: micron/st: Hardcode erase_proto to 1-1-1 Date: Thu, 9 Dec 2021 11:08:13 +0100 Message-Id: <20211209100813.61713-2-alexander.sverdlin@nokia.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20211209100813.61713-1-alexander.sverdlin@nokia.com> References: <20211209100813.61713-1-alexander.sverdlin@nokia.com> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 69eace52-6816-4594-7c36-08d9bafbd538 X-MS-TrafficTypeDiagnostic: VI1PR0701MB2413:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2733; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4hjFBoENe52jmTQ1LH5HpZ/Z4xIoexLJbYnjl2meVBJ7IZdmODZzxG40A3FYhyOHB7IxRnVHIe9yH/rBbcddN+8bAB0T5E2cyz+tnDZQrkKtU1+K3aOIC78RqK6TWR8w2WLMFRfaq2xYmxxrvH4UTqgfOt07b8nPp6YMHCVbPrH6rSduDAAtMPF2AHx6NUltUzqmPL9XrGzfr7BwBapD2uMFsMfa29ICr1iQIp47k81ZaFZzipYcPNVtipvwZuAcj3D+6U/xZQY2yTJanPqETh0l9Axlz4HduDKe5OtpOlaWBKvflZ13x5VrPo9sumicN6j7P0IVjXsO7xGGavqWchgAiNR4Uzy5aeKQX6v1vgKwSwBfnwf/lX0zypve7jttumSlZrqCDolOYVQrStP66DZ19v/RkSVqkr3mpg6OrOeSbYku0y13X/U71lE2TFbgmtTbC81Zb225A1mjMtJ2R5xb5pfqn7+EeoWdkw0287cW2yOCGuhb7pADb+sZIX6fowKFhjaCBRlxGXOyC1r2GaeLZEWVPss+D8qCnBw0+f6Mt4vZ7kBRhdJbgnIrAOwe9UbuguqkzOi8LVWXupxpuJwBbdwaSRm9+L1gIhtlOlsNiKmQfiCoNe3BY2SMJGjK6uM1+S7ysBHoCjONrNyx1gHXjvevVj2iFsTBal5zc07wvmezPtwqgo0pHew/3oj5ISJxQQQ7x2zFZ6UdW/1IaN791yo7dkWOYTzMuNpS9DIKpKJm5VlDjGjiJYavnxhzHXZWqKzfLc6surN57VhBHLLG1ZMzJeyFML/TlSAGgkS6LpUPNamQTKqP9tHC6tQUzEardosjiSegtRSfPoIIRQC5t3IuHH5ODLRAME3RPoY= X-Forefront-Antispam-Report: CIP:131.228.2.8; CTRY:FI; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:fihe3nok0734.emea.nsn-net.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(40470700001)(26005)(82310400004)(8936002)(356005)(70586007)(6666004)(70206006)(82960400001)(36756003)(316002)(40460700001)(2906002)(6916009)(54906003)(8676002)(81166007)(5660300002)(508600001)(86362001)(4744005)(186003)(4326008)(336012)(1076003)(2616005)(47076005)(36860700001)(36900700001); DIR:OUT; SFP:1102; X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2021 10:08:22.5504 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69eace52-6816-4594-7c36-08d9bafbd538 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.8]; Helo=[fihe3nok0734.emea.nsn-net.net] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT035.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB2413 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211209_020827_712560_C0EA3D17 X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. 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 This fixes sector erase on mt25qu256aba8e12-1sit. Looks like others like mt35xu512aba could be affected as well. Signed-off-by: Alexander Sverdlin --- drivers/mtd/spi-nor/micron-st.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 [40.107.21.96 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 -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.21.96 listed in wl.mailspike.net] 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 This fixes sector erase on mt25qu256aba8e12-1sit. Looks like others like mt35xu512aba could be affected as well. Signed-off-by: Alexander Sverdlin --- drivers/mtd/spi-nor/micron-st.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c index 2f3054b..058bbb7 100644 --- a/drivers/mtd/spi-nor/micron-st.c +++ b/drivers/mtd/spi-nor/micron-st.c @@ -267,6 +267,12 @@ static void micron_st_default_init(struct spi_nor *nor) nor->flags &= ~SNOR_F_HAS_16BIT_SR; nor->params->quad_enable = NULL; nor->params->set_4byte_addr_mode = st_micron_set_4byte_addr_mode; + + /* + * mt25qu doesn't support all possible write protocols for erase, only + * 1-1-0, 2-2-0, 4-4-0. + */ + nor->erase_proto = SNOR_PROTO_1_1_1; } static const struct spi_nor_fixups micron_st_fixups = {