]> git.hungrycats.org Git - linux/commit
mtd: spi-nor: spansion: use die erase for multi-die devices only
authorTakahiro Kuwano <takahiro.kuwano@infineon.com>
Wed, 27 May 2026 09:05:39 +0000 (18:05 +0900)
committerPratyush Yadav <pratyush@kernel.org>
Thu, 28 May 2026 13:57:24 +0000 (15:57 +0200)
commit306e443156b82a2a14a3f33da908c303be45529c
treed9d990c60c12e66e2cafdce72e19a2ec76f24857
parent48007986232858f94fc1ba2af4b360008e3e146b
mtd: spi-nor: spansion: use die erase for multi-die devices only

Die erase opcode is supported in multi-die devices only. For single die
devices, default chip erase opcode must be used.

In s25hx_t_late_init(), die erase opcode is set only when the device is
multi-die.

Fixes: 461d0babb544 ("mtd: spi-nor: spansion: enable die erase for multi die flashes")
Cc: stable@kernel.org
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Takahiro Kuwano <takahiro.kuwano@infineon.com>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
drivers/mtd/spi-nor/spansion.c