linux/drivers/mtd/spi-nor
Michael Walle ac5bfa968b mtd: spi-nor: fix flash probing
Fix flash probing by name. Flash entries without a name are allowed
since commit 15eb8303bb ("mtd: spi-nor: mark the flash name as
obsolete"). But it was just until recently that a flash entry without a
name was actually introduced. This triggers a bug in the legacy probe by
name path. Skip entries without a name to fix it.

Fixes: 2095e7da8049 ("mtd: spi-nor: spansion: Add support for S28HS256T")
Reported-by: Jon Hunter <jonathanh@nvidia.com>
Closes: https://lore.kernel.org/r/66c8ebb0-1324-4ad9-9926-8d4eb7e1e63a@nvidia.com/
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20240909072854.812206-1-mwalle@kernel.org
2024-09-14 17:56:31 +02:00
..
controllers
atmel.c
core.c mtd: spi-nor: fix flash probing 2024-09-14 17:56:31 +02:00
core.h mtd: spi-nor: get rid of SPI_NOR_NO_FR 2024-05-27 17:07:15 +02:00
debugfs.c mtd: spi-nor: core: get rid of SNOR_OVERLAID_REGION flag 2024-02-26 13:28:15 +02:00
eon.c
esmt.c
everspin.c mtd: spi-nor: get rid of SPI_NOR_NO_FR 2024-05-27 17:07:15 +02:00
gigadevice.c
intel.c
issi.c
Kconfig
macronix.c
Makefile mtd: spi-nor: Remove support for Xilinx S3AN flashes 2024-05-27 16:39:21 +02:00
micron-st.c mtd: spi-nor: micron-st: Add n25q064a WP support 2024-09-14 17:56:31 +02:00
otp.c
sfdp.c mtd: spi-nor: core: get rid of SNOR_OVERLAID_REGION flag 2024-02-26 13:28:15 +02:00
sfdp.h mtd: spi-nor: sfdp: get the 1-1-8 and 1-8-8 protocol from SFDP 2023-12-20 10:44:00 +02:00
spansion.c mtd: spi-nor: spansion: Add support for S28HS256T 2024-09-14 17:56:31 +02:00
sst.c mtd: spi-nor: sst: Factor out common write operation to sst_nor_write_data() 2024-09-14 17:56:31 +02:00
swp.c
sysfs.c mtd: spi-nor: sysfs: hide the flash name if not set 2023-12-19 05:08:23 +02:00
winbond.c mtd: spi-nor: winbond: add Zetta ZD25Q128C support 2024-09-14 17:56:31 +02:00
xmc.c