diff options
| author | Michael Walle <mwalle@kernel.org> | 2026-07-13 11:11:40 +0200 |
|---|---|---|
| committer | Michael Walle <mwalle@kernel.org> | 2026-09-04 10:29:47 +0200 |
| commit | a4cd8da7f2bda7562a7e156ee9c9e9b3ba98208e (patch) | |
| tree | 0f389358726937359c642a4872161b2c4186f8f3 /include/linux/mtd | |
| parent | 0132eaac40518f6ebb42131e5005efc375473e8e (diff) | |
mtd: spi-nor: don't clear the SNOR_F_4B_OPCODES flag on failure
This was introduced in commit 548ed6847f530 ("mtd: spi-nor: Add the
SNOR_F_4B_OPCODES flag"). It looks like it was the rollback mechanism if
parsing the SFDP failed, but was setting that flag first. Nowadays, that
flag can only be set if spi_nor_parse_4bait() was successful. IOW, the
flags won't be left in an undefined state if parsing SFDP fails.
Remove the unneeded code to be able to rework spi_nor_init_params().
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Takahiro Kuwano <takahiro.kuwano@infineon.com>
Tested-by: Cheng Ming Lin <chengminglin@mxic.com.tw>
Tested-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Michael Walle <mwalle@kernel.org>
Diffstat (limited to 'include/linux/mtd')
0 files changed, 0 insertions, 0 deletions
