linux-stable/drivers/mtd/spi-nor
Pratyush Yadav afd473e858 mtd: spi-nor: core: Allow flashes to specify MTD writesize
Some flashes like the Cypress S28 family use ECC. Under this ECC scheme,
multi-pass writes to an ECC block is not allowed. In other words, once
data is programmed to an ECC block, it can't be programmed again without
erasing it first.

Upper layers like file systems need to be given this information so they
do not cause error conditions on the flash by attempting multi-pass
programming. This can be done by setting 'writesize' in 'struct
mtd_info'.

Set the default to 1 but allow flashes to modify it in fixup hooks. If
more flashes show up with this constraint in the future it might be
worth it to add it to 'struct flash_info', but for now increasing its
size is not worth it.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201201102711.8727-3-p.yadav@ti.com
2020-12-07 22:57:29 +05:30
..
controllers mtd: spi-nor: intel-spi: Add support for Intel Alder Lake-S SPI serial flash 2020-09-29 18:46:20 +05:30
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: core: Allow flashes to specify MTD writesize 2020-12-07 22:57:29 +05:30
core.h mtd: spi-nor: core: Allow flashes to specify MTD writesize 2020-12-07 22:57:29 +05:30
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 SECT_4K to mx25l12805d 2020-09-29 18:44:27 +05:30
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: allow using MT35XU512ABA in Octal DTR mode 2020-11-09 19:00:14 +05:30
sfdp.c mtd: spi-nor: Fix multiple typos 2020-12-07 22:57:28 +05:30
sfdp.h mtd: spi-nor: sfdp: detect Soft Reset sequence support from BFPT 2020-11-09 11:56:17 +05:30
spansion.c mtd: spi-nor: spansion: add support for Cypress Semper flash 2020-11-09 19:00:01 +05:30
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: winbond: Add support for w25q64jwm 2020-09-29 18:47:11 +05:30
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