linux/drivers/mtd/spi-nor
Pratyush Yadav 17926cd770 mtd: spi-nor: core: avoid odd length/address writes in 8D-8D-8D mode
On Octal DTR capable flashes like Micron Xcella the writes cannot start
or end at an odd address in Octal DTR mode. Extra 0xff bytes need to be
appended or prepended to make sure the start address and end address are
even. 0xff is used because on NOR flashes a program operation can only
flip bits from 1 to 0, not the other way round. 0 to 1 flip needs to
happen via erases.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20250708091646.292-2-ziniu.wang_1@nxp.com
2025-09-01 16:11:55 +02:00
..
controllers mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
atmel.c mtd: spi-nor: atmel: add at25sf321 entry 2024-12-06 15:13:19 +00:00
core.c mtd: spi-nor: core: avoid odd length/address writes in 8D-8D-8D mode 2025-09-01 16:11:55 +02:00
core.h mtd: spi-nor: extend description of size member of struct flash_info 2025-01-13 15:46:57 +00:00
debugfs.c mtd: spi-nor: core: get rid of SNOR_OVERLAID_REGION flag 2024-02-26 13:28:15 +02:00
eon.c mtd: spi-nor: eon: sort flash_info database 2023-09-19 18:59:21 +03:00
esmt.c mtd: spi-nor: esmt: convert flash_info to new format 2023-09-19 18:57:50 +03:00
everspin.c mtd: spi-nor: get rid of SPI_NOR_NO_FR 2024-05-27 17:07:15 +02:00
gigadevice.c mtd: spi-nor: gigadevice: sort flash_info database 2023-09-19 18:59:21 +03:00
intel.c mtd: spi-nor: intel: convert flash_info to new format 2023-09-19 18:59:19 +03:00
issi.c mtd: spi-nor: issi: sort flash_info database 2023-09-19 18:59:21 +03:00
Kconfig mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
macronix.c mtd: spi-nor: macronix: Add fixups for MX25L3255E 2025-04-08 15:04:54 +00:00
Makefile mtd: spi-nor: Remove support for Xilinx S3AN flashes 2024-05-27 16:39:21 +02:00
micron-st.c mtd: spi-nor: Constify struct spi_nor_fixups 2025-07-03 16:50:21 +02:00
otp.c mtd: spi-nor: explicitly include <linux/math64.h> 2025-03-07 08:36:38 +02:00
sfdp.c mtd: spi-nor: sfdp: Get the 8D-8D-8D byte order from BFPT 2024-10-02 10:28:40 +03:00
sfdp.h mtd: spi-nor: sfdp: Get the 8D-8D-8D byte order from BFPT 2024-10-02 10:28:40 +03:00
spansion.c mtd: spi-nor: spansion: Fixup params->set_4byte_addr_mode for SEMPER 2025-07-03 16:57:12 +02:00
sst.c mtd: spi-nor: sst: Fix SST write failure 2025-02-17 14:07:09 +00:00
swp.c mtd: spi-nor: Fix spi_nor_try_unlock_all() 2025-07-03 17:12:17 +02:00
sysfs.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
winbond.c mtd: spi-nor: winbond: Add support for w25q02jv 2025-02-03 14:22:21 +00:00
xmc.c mtd: spi-nor: xmc: convert flash_info to new format 2023-09-19 18:59:20 +03:00