From nobody Fri Sep 25 10:38:37 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9BF25733E for ; Mon, 14 Sep 2026 04:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789361448; cv=none; b=IFDNXISxfiOC5r519VNVbKRgPuDiORI348bPj/LbIs5kOPxf9++cndonSPnTjj7huqutf+jHBHzKMaEK0hUBV01yPrU6YgI6MpyQAjUst12wqYG4Kb9pn8z2/Nqb1UluMSb1DpRg+sX1UNBYP+SXHRCt2hhdOt2zEQz4Bl6V5nI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789361448; c=relaxed/simple; bh=3/dJO0bblp44/9srkukBRbil1UNNMEz8L13Frh+sKek=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mKmq9rf/NSlxKZZKRmwnF+slDAKvQY3WI7J1+g3QBmO4Emu9+a8mq4YZZ4VCsdYu0HyraXbmmfSsmB3pP+8MfWtLNpST33VMEBG0uxHAh/t22OvoJ7Vb8reYdcwQrsj2yEiOmR+1HhlHHKJ720/cKmRVxZITpmCIq8rTWCqmI8U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sRdceleu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sRdceleu" Received: by smtp.kernel.org (Postfix) with ESMTPS id 927A5C2BCB8; Mon, 14 Sep 2026 04:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789361447; bh=3/dJO0bblp44/9srkukBRbil1UNNMEz8L13Frh+sKek=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=sRdceleuBYmxstvJOHaPttC1j68kkSnjggrmsdsQSHSIIfQ5ffZpMe8i98jTaqU7p rnUMi/lNvgIflLGRYpciTegpHH36gVrqt98UbpqFZVsI1rzWBCgZv3h3gS0aiirnAK QVWrIZ2uQxMbA5Iivh/22sucqcD/mHGPurcXeEf7Jrsw/41k8URY7g9xh1ol/eIk7B Se+XMq6MpE0oAkyGq33La59SkMUoqvTV61DB7ly4mhiHDznFDUw3myp+7ZJF9iKsEZ VUYuWmMQ8taqBBmRuip5IhLp7Y4lEI7m95nDIrhfiiJikYEOdW5SY/TV30hOY4btW+ etsbjE/diACvg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70AC6C88E50; Mon, 14 Sep 2026 04:50:47 +0000 (UTC) From: Takahiro Kuwano via B4 Relay Date: Mon, 14 Sep 2026 13:50:36 +0900 Subject: [PATCH 1/2] mtd: spi-nor: spansion: Remove s25fs256s0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260914-s25fs256s-fixup-v1-1-e94019455c1e@infineon.com> References: <20260914-s25fs256s-fixup-v1-0-e94019455c1e@infineon.com> In-Reply-To: <20260914-s25fs256s-fixup-v1-0-e94019455c1e@infineon.com> To: Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Alexander Sverdlin Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Takahiro Kuwano X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789361446; l=1387; i=takahiro.kuwano@infineon.com; s=20250227; h=from:subject:message-id; bh=pC764isHWSwUhqkcJDPq348qqcspEvCp/PJEhckABAE=; b=xeZWmnO0p1VtbkZpMy3oreJH6iuRIcRaqHDLsyQKPUvPcNBzUDdA/ENxEB7dfhFp0S8VcoY4W 0p11DtqFcQrAiAN4/3/YF4KOR/NhhXI73HR2JTblBZVAEF1+2lQuANq X-Developer-Key: i=takahiro.kuwano@infineon.com; a=ed25519; pk=aS8V9WLuMUkl0vmgD0xJU19ZajdJmuyFBnBfVj0dfDs= X-Endpoint-Received: by B4 Relay for takahiro.kuwano@infineon.com/20250227 with auth_id=566 X-Original-From: Takahiro Kuwano Reply-To: takahiro.kuwano@infineon.com From: Takahiro Kuwano The Spansion ID table lists s25fs256s0 and s25fs256s1 as variants distinguished by id[4] (0x00 for 256 KB sectors and 0x01 for 64 KB sectors), following an incorrect statement in the datasheet. The sector size of s25fs256s is configurable between 256 KB and 64 KB. The factory default is 64 KB, and id[4] is always 0x01 regardless of the configured sector size. Remove the invalid s25fs256s0 entry from the ID table. Fixes: 075fd6dff24a ("mtd: spi-nor: spansion: Differentiate between s25fl25= 6s and s25fs256s") Signed-off-by: Takahiro Kuwano --- drivers/mtd/spi-nor/spansion.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 6938fe26969c..6a62ca6f6451 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -873,13 +873,6 @@ static const struct flash_info spansion_nor_parts[] = =3D { .sector_size =3D SZ_256K, .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, .mfr_flags =3D USE_CLSR, - }, { - .id =3D SNOR_ID(0x01, 0x02, 0x19, 0x4d, 0x00, 0x81), - .name =3D "s25fs256s0", - .size =3D SZ_32M, - .sector_size =3D SZ_256K, - .no_sfdp_flags =3D SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, - .mfr_flags =3D USE_CLSR, }, { .id =3D SNOR_ID(0x01, 0x02, 0x19, 0x4d, 0x01, 0x80), .name =3D "s25fl256s1", --=20 2.43.0 From nobody Fri Sep 25 10:38:37 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA06331E84B for ; Mon, 14 Sep 2026 04:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789361448; cv=none; b=eYKJZ/mVMof7flH8+U2QZ7SzaTuoikBOX55/h62J61+4E93Zjy0lhz7YswCpRZIZmCKIc9Pe7JcEXes9pxJG2XsfGPR77ee1Q+1LR6VT4uuT2KkjGFjkvP5BSZ5unEqYSQfRR7G+52zz1IVGpQHzy6iRm7kg4F1Xc7XyLdv3P6g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789361448; c=relaxed/simple; bh=Z5CWLPifvsIxw2AX2DYTLeV1c5Mrmc8Q4NyyibtsTDs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j51w22OarPE7OFp8D6SFAatlUSQX9WXPZtVQYHJDdAOiJLOhmwtQfyK3P5JIEoIJCtYdDRklUwQ4F4nCMf4VE68A0b063Xtl4LcaIEuHDUFyW1nkHcm9cgGlzPgq9kG9Vpl40SUwgYVStfGUH8BzZdWK1xKeqDPHVrdrOLbkAqI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LiboKh9b; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LiboKh9b" Received: by smtp.kernel.org (Postfix) with ESMTPS id 9A85EC2BCFA; Mon, 14 Sep 2026 04:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789361447; bh=Z5CWLPifvsIxw2AX2DYTLeV1c5Mrmc8Q4NyyibtsTDs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=LiboKh9bDIZYQSfR8M7LDLY9UnHSAwaHdjerOZpVvIUtvNViQquq3RHYB6MxXmEAs k1RoyudQkZEJQKKyfr7B487bLK7QZcMnGlOkc2jplUyqpfkJecCQMtuihlNyvIUzTA 2kGVMcqSwMx3IovGhEQuCCJf8dAvdJFqH7ssBV2MQeS1wxYxKf7UBk38PMRUznCQYL FJA05PO5F0dYjdHvs/tz1pdvkuYl1qE5+gOvU8w/MwUFiq1mQm44BoVvMKgLErdZ9X hm+C6FMxrlsIyC4hjJIkE4l9ZU0SAK2lwLchHecCJ+7uHL8+pVqM/j2/pGkw8YCQvN CSsCZg2fcmcPg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 807B5C88E69; Mon, 14 Sep 2026 04:50:47 +0000 (UTC) From: Takahiro Kuwano via B4 Relay Date: Mon, 14 Sep 2026 13:50:37 +0900 Subject: [PATCH 2/2] mtd: spi-nor: spansion: Assign .fixups to s25fs256s1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260914-s25fs256s-fixup-v1-2-e94019455c1e@infineon.com> References: <20260914-s25fs256s-fixup-v1-0-e94019455c1e@infineon.com> In-Reply-To: <20260914-s25fs256s-fixup-v1-0-e94019455c1e@infineon.com> To: Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Alexander Sverdlin Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Takahiro Kuwano X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789361446; l=1111; i=takahiro.kuwano@infineon.com; s=20250227; h=from:subject:message-id; bh=rZ/ppqGkp79oofIgjp+2euFFx00lpMqR81jL20uurYg=; b=afD1LcUOLiZftmqkrFPqF/KTxnZRF8mPVBKSA7bPSLo5RV0+1PoKwVJ43wwJoIYUhPzYS2+9K HdcB9jBYcG0Aunc9iUZNcFjr34pqfo7BPM4UpUqY4k9as8A8K6FV1OQ X-Developer-Key: i=takahiro.kuwano@infineon.com; a=ed25519; pk=aS8V9WLuMUkl0vmgD0xJU19ZajdJmuyFBnBfVj0dfDs= X-Endpoint-Received: by B4 Relay for takahiro.kuwano@infineon.com/20250227 with auth_id=566 X-Original-From: Takahiro Kuwano Reply-To: takahiro.kuwano@infineon.com From: Takahiro Kuwano s25fs256s1 has incorrect SFDP entries, like s25fs512s and s25fs128s1. Assign the common s25fs_s_nor_fixups to s25fs256s1 to fix its page size and sector map. Signed-off-by: Takahiro Kuwano --- drivers/mtd/spi-nor/spansion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 6a62ca6f6451..bc50881d5648 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -1148,6 +1148,7 @@ static const struct spi_nor_fixups spansion_nor_fixup= s =3D { static const struct spi_nor_fixup spansion_fixups[] =3D { { .fixups =3D &spansion_nor_fixups }, { .id =3D SNOR_ID(0x01, 0x02, 0x20, 0x4d, 0x00, 0x81), .fixups =3D &s25fs= _s_nor_fixups }, + { .id =3D SNOR_ID(0x01, 0x02, 0x19, 0x4d, 0x01, 0x81), .fixups =3D &s25fs= _s_nor_fixups }, { .id =3D SNOR_ID(0x01, 0x20, 0x18, 0x4d, 0x01, 0x81), .fixups =3D &s25fs= _s_nor_fixups }, { .id =3D SNOR_ID(0x01, 0x60, 0x17), .fixup_flags =3D SPI_NOR_4B_OPCODES = }, { .id =3D SNOR_ID(0x01, 0x60, 0x18), .fixup_flags =3D SPI_NOR_4B_OPCODES = }, --=20 2.43.0