linux/drivers/mtd/spi-nor
Pratyush Yadav f9acd7fa80
mtd: spi-nor: sfdp: default to addr_width of 3 for configurable widths
JESD216D.01 says that when the address width can be 3 or 4, it defaults
to 3 and enters 4-byte mode when given the appropriate command. So, when
we see a configurable width, default to 3 and let flash that default to
4 change it in a post-bfpt fixup.

This fixes SMPT parsing for flashes with configurable address width. If
the SMPT descriptor advertises variable address width, we use
nor->addr_width as the address width. But since it was not set to any
value from the SFDP table, the read command uses an address width of 0,
resulting in an incorrect read being issued.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
2020-05-30 20:22:49 +03:00
..
controllers mtd: spi-nor: Fix SPI NOR acronym 2020-05-28 10:46:23 +03:00
atmel.c mtd: spi-nor: Move Atmel bits out of core.c 2020-03-17 09:28:02 +02:00
catalyst.c mtd: spi-nor: Move Catalyst bits out of core.c 2020-03-17 09:28:05 +02:00
core.c mtd: spi-nor: Fix SPI NOR acronym 2020-05-28 10:46:23 +03:00
core.h mtd: spi-nor: Add SR 4bit block protection support 2020-03-24 11:47:42 +02:00
eon.c mtd: spi-nor: Move Eon bits out of core.c 2020-03-17 09:28:02 +02:00
esmt.c mtd: spi-nor: Move ESMT bits out of core.c 2020-03-17 09:28:02 +02:00
everspin.c mtd: spi-nor: Move Everspin bits out of core.c 2020-03-17 09:28:03 +02:00
fujitsu.c mtd: spi-nor: Move Fujitsu bits out of core.c 2020-03-17 09:28:03 +02:00
gigadevice.c mtd: spi-nor: Trim what is exposed in spi-nor.h 2020-03-17 09:28:07 +02:00
intel.c mtd: spi-nor: Move Intel bits out of core.c 2020-03-17 09:28:03 +02:00
issi.c mtd: spi-nor: Trim what is exposed in spi-nor.h 2020-03-17 09:28:07 +02:00
Kconfig mtd: spi-nor: Fix SPI NOR acronym 2020-05-28 10:46:23 +03:00
macronix.c mtd: spi-nor: macronix: Add support for mx25u51245g 2020-04-28 10:21:38 +03:00
Makefile mtd: spi-nor: Compile files in controllers/ directory 2020-04-09 22:00:13 +02:00
micron-st.c mtd: spi-nor: micron-st: Enable locking for n25q00 2020-04-29 09:03:12 +03:00
sfdp.c mtd: spi-nor: sfdp: default to addr_width of 3 for configurable widths 2020-05-30 20:22:49 +03:00
sfdp.h mtd: spi-nor: Move SFDP logic out of the core 2020-03-16 18:28:53 +02:00
spansion.c mtd: spi-nor: Add support for Cypress cy15x104q 2020-05-28 11:05:57 +03:00
sst.c mtd: spi-nor: Move SST bits out of core.c 2020-03-17 09:28:05 +02:00
winbond.c mtd: spi-nor: Trim what is exposed in spi-nor.h 2020-03-17 09:28:07 +02:00
xilinx.c mtd: spi-nor: Trim what is exposed in spi-nor.h 2020-03-17 09:28:07 +02:00
xmc.c mtd: spi-nor: Move XMC bits out of core.c 2020-03-17 09:28:06 +02:00