Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217946/?format=api
{ "id": 2217946, "url": "http://patchwork.ozlabs.org/api/patches/2217946/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260331030644.1120-1-hechushiguitu666@gmail.com/", "project": { "id": 3, "url": "http://patchwork.ozlabs.org/api/projects/3/?format=api", "name": "Linux MTD development", "link_name": "linux-mtd", "list_id": "linux-mtd.lists.infradead.org", "list_email": "linux-mtd@lists.infradead.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260331030644.1120-1-hechushiguitu666@gmail.com>", "list_archive_url": null, "date": "2026-03-31T03:06:42", "name": "[v2] mtd: spi-nor: micron-st: Enable die erase support for MT35XU02GCBA", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "04c234f969d1548715882ed9e70c9ca31fafc6c6", "submitter": { "id": 92759, "url": "http://patchwork.ozlabs.org/api/people/92759/?format=api", "name": "Haoyu Lu", "email": "hechushiguitu666@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260331030644.1120-1-hechushiguitu666@gmail.com/mbox/", "series": [ { "id": 498120, "url": "http://patchwork.ozlabs.org/api/series/498120/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=498120", "date": "2026-03-31T03:06:42", "name": "[v2] mtd: spi-nor: micron-st: Enable die erase support for MT35XU02GCBA", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/498120/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217946/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217946/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=1zbSJNMi;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=WFevGyOb;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4flCht0MWzz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 14:07:21 +1100 (AEDT)", "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w7PRV-0000000CDA2-2c60;\n\tTue, 31 Mar 2026 03:07:01 +0000", "from mail-dy1-x1332.google.com ([2607:f8b0:4864:20::1332])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w7PRQ-0000000CD9f-0TWA\n\tfor linux-mtd@lists.infradead.org;\n\tTue, 31 Mar 2026 03:06:57 +0000", "by mail-dy1-x1332.google.com with SMTP id\n 5a478bee46e88-2bdd40d3c61so4147197eec.1\n for <linux-mtd@lists.infradead.org>;\n Mon, 30 Mar 2026 20:06:55 -0700 (PDT)", "from ZC-202510311500 ([123.139.39.4])\n by smtp.gmail.com with ESMTPSA id\n a92af1059eb24-12ab97cb08csm14922301c88.3.2026.03.30.20.06.52\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 30 Mar 2026 20:06:54 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=pSHhtagWNp7/Q9joT8TxvsC0M7UgXS8Qjk+WRz1xF5Y=; b=1zbSJNMi5THrE0\n\tbmRcgzmKOwYmb1aQg3hGWZYZ6vWBijd+D0g58E22AWJYb45i21TiJr+mGu7hS9Mui3RZAjm10XuhY\n\t9N1pD+rGv7S9rbAVWHvc650+jyeNoRqZueYcXTJ+Jn3e8qTs4qj8+bvQjeMHTChifbUx/2EwloGZC\n\tewvT+jfgktln9rmkV4kVNnkjYKXXbDSNaGIHIN1ljbfU325MyH4cIixIJEiB4lGzl3GWMTGOB6N+K\n\tSWOvgA54htUxhQb5qjpx+uz0Wfk7Dfsf3+UTxMws9D31j/cDMSXZMOuDvhauacUHjITVVG8LvWjuz\n\tadyjAOA0GDMLym1nj/WQ==;", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774926415; x=1775531215;\n darn=lists.infradead.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=Lt98my5dSHED1eT6na4Ue/Vw7/7t0HExMYX7rz50JRc=;\n b=WFevGyObKCF2qfPILD+oQJYftMz18J2tmjtOwdBGqzN8g4gLWydHthSFW1bfyaLGSI\n lYk7oyVbsHDoe8Rmch+FHF5PS4hm5ydIUlKWqQPwCN4DJlWNmQWcdDBgqGTUlHbomJwd\n BKYIyUdgyxkAdhEpSq+3UMFu3mbFQ43O41KmnLBzmhPikmQjjRJ/M8eK4GqVueOgq7kx\n WKV2YFuvX96q74RJraOA3N6GEmkQVo510CgbCxLVuKQ+h8ODt0zNmy8DcColcGSibxl4\n IeGZCHs5WbEsgzhDh09lPrB0IkhKyQe/PNu6MT8s/cpJR1DlXz1mzDgU4/wAGJN+QsFz\n vcHQ==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774926415; x=1775531215;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Lt98my5dSHED1eT6na4Ue/Vw7/7t0HExMYX7rz50JRc=;\n b=CvlFDEdI050Hhlnqw9KyCxRGe3uF6wOIT2OicXwQD2UuzMNNFBe/81z36wKnERxJAQ\n wl/+SFKPnLAq//jiaokbjlAJ6EwZ7fQhqG4ufk7LgeH3a4JXV1hLTGcRWOsLVFrpUTRG\n wkb+IpJu6GDPiWb/UCWZAK6290k1SlCnzwRDRn2gAA4l6ujpms8H7qR2NRKpQJ4JYP9w\n 4zPb7T1rTAE1IexkUtXOaEFM8cWUdO/cZX08It/QAC7z919l5O3Vq34c2dNNpIX/92Z3\n 3LlxfmBza5eKX9xnbaeA6T0sytqKoGZNSFI5UhYCHpj8LYxy9fI6cOOe7Han0EoSKf7Q\n czSw==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCW2xTeVAb4KCWlVCzbNVsua45JayTygcXD7UtL+glchK2PowxIKXPcDokDK/8VtP+dhsBYCBcIGHIg=@lists.infradead.org", "X-Gm-Message-State": "AOJu0Yx9OVWdfs4NJtAFxLgcve8M7Virn0Xj7BxYSor5t96C0WXxK55D\n\tGlbsB67baMvBFVzy3n4hA82YskY3iFN7DK5PKMOwFBFVWGgugNMN81XifR3qZ3cS", "X-Gm-Gg": "ATEYQzwKrrL7V65JUuihHj8eJ1HklONllHIyGkt0/LKZfOpgZZShjjgixRSiEdtiRBd\n\tN9ARSZxVdslKvP40DM7nnCrDPtocL5eXFzHTZ4K7v/qKxbfvmsxwjbVoJNLZ/AlPExKw0vDpDAG\n\tuOnACiLoEHfJMhv3/AiKxTB6IfBr4/xtWkwZwOlTXKdnhg0fgKVKgwK/b8dEp9OargSenx6kvny\n\t/ePxTZLaW8Rww2THGrDkLKpjzYRK93+2lOfOXcPc5D/y2gw2SR6Dqg/alxoEM5emz9f8w18PQeN\n\tUQF2aJjsl2ewzLtIIsYJ/B5RMkJCjfp5HPtOM8nYC+fJ2VKTyr66AVaB6FlarOe49dSDRcOWRxl\n\tOPg5un8Me/I2wm4y5miCisL8OD8Kvk4ygWGI8imVgxC/aCJwXet/EeAxIJxhYj8xlAmBLsFRhkl\n\tExfQJ3tdkULcCNVEYaQpVwLW4E+zMF5GiUt9+YDcZ1lOwFyXx6KTo=", "X-Received": "by 2002:a05:7022:fb05:b0:128:d5bd:3572 with SMTP id\n a92af1059eb24-12ab28e4a9cmr7462020c88.31.1774926414912;\n Mon, 30 Mar 2026 20:06:54 -0700 (PDT)", "From": "Haoyu Lu <hechushiguitu666@gmail.com>", "To": "Tudor Ambarus <tudor.ambarus@linaro.org>", "Cc": "Pratyush Yadav <pratyush@kernel.org>,\n\tMichael Walle <mwalle@kernel.org>,\n\tMiquel Raynal <miquel.raynal@bootlin.com>,\n\tRichard Weinberger <richard@nod.at>,\n\tVignesh Raghavendra <vigneshr@ti.com>,\n\tlinux-mtd@lists.infradead.org,\n\tlinux-kernel@vger.kernel.org,\n\tHaoyu Lu <hechushiguitu666@gmail.com>", "Subject": "[PATCH v2] mtd: spi-nor: micron-st: Enable die erase support for\n MT35XU02GCBA", "Date": "Tue, 31 Mar 2026 11:06:42 +0800", "Message-ID": "<20260331030644.1120-1-hechushiguitu666@gmail.com>", "X-Mailer": "git-send-email 2.53.0.windows.1", "MIME-Version": "1.0", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20260330_200656_155254_396DDDAC ", "X-CRM114-Status": "GOOD ( 14.69 )", "X-Spam-Score": "-1.8 (-)", "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam. The original\n message has been attached to this so you can view it or label\n similar future email. If you have any questions, see\n the administrator of that system for details.\n Content preview: The MT35XU02GCBA flash device does not support chip erase\n according to its datasheet, but supports die erase. The existing code had\n a TODO comment noting that the SPI_NOR_IO_MODE_EN_VOLATILE flag prob [...] \n Content analysis details: (-1.8 points, 5.0 required)\n pts rule name description\n ---- ----------------------\n --------------------------------------------------\n 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS SPF: sender matches SPF record\n 0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from\n envelope-from domain\n -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n author's\n domain\n -0.1 DKIM_VALID Message has at least one valid DKIM or DK\n signature\n -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n [score: 0.0000]\n 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n provider\n [hechushiguitu666(at)gmail.com]\n 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in\n digit\n [hechushiguitu666(at)gmail.com]\n -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no\n trust\n [2607:f8b0:4864:20:0:0:0:1332 listed in]\n [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 <linux-mtd.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>", "List-Post": "<mailto:linux-mtd@lists.infradead.org>", "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>", "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "The MT35XU02GCBA flash device does not support chip erase according\nto its datasheet, but supports die erase. The existing code had a TODO\ncomment noting that the SPI_NOR_IO_MODE_EN_VOLATILE flag probably needs\nto be enabled and the driver implementation needs to be converted to\nuse die erase.\n\nThis patch enables the SPI_NOR_IO_MODE_EN_VOLATILE flag and adds the\nmt35_two_die_fixups to the MT35XU02GCBA entry, which includes the\nmicron_st_nor_two_die_late_init() function that sets up die erase\nsupport.\n\nWith these changes, the flash device can properly use die erase\noperations instead of chip erase.\n\nSigned-off-by: Haoyu Lu <hechushiguitu666@gmail.com>\n---\nv2: Remove TODO comment and rename mt35xu01gbba_fixups to mt35_two_die_fixups per review.\n\n drivers/mtd/spi-nor/micron-st.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c\nindex 4e8c6ef14697..c22d62545391 100644\n--- a/drivers/mtd/spi-nor/micron-st.c\n+++ b/drivers/mtd/spi-nor/micron-st.c\n@@ -185,7 +185,7 @@ static const struct spi_nor_fixups mt35xu512aba_fixups = {\n \t.post_sfdp = mt35xu512aba_post_sfdp_fixup,\n };\n \n-static const struct spi_nor_fixups mt35xu01gbba_fixups = {\n+static const struct spi_nor_fixups mt35_two_die_fixups = {\n \t.post_sfdp = mt35xu512aba_post_sfdp_fixup,\n \t.late_init = micron_st_nor_two_die_late_init,\n };\n@@ -202,7 +202,7 @@ static const struct flash_info micron_nor_parts[] = {\n \t\t.id = SNOR_ID(0x2c, 0x5b, 0x1b),\n \t\t.mfr_flags = USE_FSR,\n \t\t.fixup_flags = SPI_NOR_IO_MODE_EN_VOLATILE,\n-\t\t.fixups = &mt35xu01gbba_fixups,\n+\t\t.fixups = &mt35_two_die_fixups,\n \t}, {\n \t\t/*\n \t\t * The MT35XU02GCBA flash device does not support chip erase,\n@@ -212,7 +212,6 @@ static const struct flash_info micron_nor_parts[] = {\n \t\t * MT35XU01GBBA, the SPI_NOR_IO_MODE_EN_VOLATILE flag probably\n \t\t * needs to be enabled.\n \t\t *\n-\t\t * TODO: Fix these and test on real hardware.\n \t\t */\n \t\t.id = SNOR_ID(0x2c, 0x5b, 0x1c),\n \t\t.name = \"mt35xu02g\",\n@@ -221,7 +220,7 @@ static const struct flash_info micron_nor_parts[] = {\n \t\t.no_sfdp_flags = SECT_4K | SPI_NOR_OCTAL_READ,\n \t\t.mfr_flags = USE_FSR,\n \t\t.fixup_flags = SPI_NOR_4B_OPCODES | SPI_NOR_IO_MODE_EN_VOLATILE,\n-\t\t.fixups = &mt35xu01gbba_fixups,\n+\t\t.fixups = &mt35_two_die_fixups,\n \t},\n };\n \n", "prefixes": [ "v2" ] }