u-boot/include/linux
Takahiro Kuwano 88057dab2c mtd: spi-nor: Allow flashes to specify MTD writesize
Some flashes like the Infineon SEMPER NOR flash 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.

This patch replicates the following upstream linux commit:
afd473e85827 ("mtd: spi-nor: core: Allow flashes to specify MTD writesize")

Acked-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
2024-10-15 08:57:49 -06:00
..
byteorder include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
clk
mfd/syscon mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
mtd mtd: spi-nor: Allow flashes to specify MTD writesize 2024-10-15 08:57:49 -06:00
soc/ti tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
unaligned linux/unaligned: remove unused access_ok.h 2023-05-31 14:05:34 -04:00
usb usb: gadget: atmel: Add DM_USB_GADGET support 2024-08-06 14:58:14 +02:00
apm_bios.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
apple-mailbox.h mailbox: apple: Add driver for Apple IOP mailbox 2022-02-10 16:44:23 -05:00
arm-smccc.h firmware: psci: Fix bind_smccc_features psci check 2024-03-13 12:40:43 -04:00
asn1.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
asn1_ber_bytecode.h
asn1_decoder.h
bch.h
bitfield.h
bitmap.h linux/bitmap.h: add bitmap_empty helper 2024-07-26 01:28:09 +02:00
bitops.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
bitrev.h
bug.h
build_bug.h Fix sparse checks processing 2023-05-15 14:08:45 -04:00
clk-provider.h clk: clk-mux: Make public the clk_fetch_parent_index 2024-07-06 15:39:22 -03:00
compat.h Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
compiler-clang.h
compiler-gcc.h
compiler-intel.h
compiler.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
compiler_attributes.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
compiler_types.h compiler: Ensure __builtin_*_overflow() support 2024-08-15 16:14:36 -06:00
completion.h
const.h
crc7.h
crc16.h crc16: Rename fs/ubifs/crc16.h to include/linux/crc16.h 2022-04-21 14:32:40 -04:00
crc32.h
ctype.h
delay.h
dma-direction.h
dma-mapping.h
drm_dp_helper.h
edd.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
err.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
errno.h
ethtool.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
fb.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
if_ether.h
if_vlan.h include: import if_vlan.h from Linux 2021-11-23 09:57:55 +02:00
immap_qe.h qe: Add <config.h> to linux/immap_qe.h 2023-12-21 08:54:37 -05:00
input.h
intel-smc.h arm: socfpga: smc: Add function to get usercode 2021-04-08 17:29:13 +08:00
io.h
ioctl.h
iopoll.h iopoll: Extend read_poll_timeout macro to support variable parameters 2022-04-12 19:10:44 +02:00
ioport.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
kbuild.h
kconfig.h kconfig: binman: Check for SPL instead of XPL 2024-10-11 11:44:48 -06:00
kernel.h mbedtls: add mbedtls into the build system 2024-10-14 17:58:12 -06:00
libfdt.h
libfdt_env.h
linkage.h
linux_string.h
list.h linux: list: add a function to count list nodes 2024-07-31 09:53:01 +02:00
list_sort.h
litex.h liteeth: LiteX Ethernet device 2022-11-28 10:25:17 -05:00
log2.h
lzo.h
math64.h lib: div64: Add support for round up of div64_u64 2022-03-09 12:34:47 +01:00
mbus.h arm: mvebu: mbus: Fix mbus driver to work also after U-Boot relocation 2022-08-23 12:35:37 +02:00
mdio.h net: phy: Add MDIO PCS 2.5G and 5G speed macros from Linux 2023-04-07 14:21:37 +02:00
mii.h include/linux/mii.h: Add <linux/types.h> 2023-11-07 14:50:52 -05:00
netdevice.h
oid_registry.h
poison.h
posix_types.h
printk.h log: convert pr_*() to logging 2021-03-01 09:54:11 -05:00
pruss_driver.h soc: ti: pruss: Add a platform driver for PRUSS in TI SoCs 2021-07-15 17:56:04 +05:30
psci.h firmware: psci: bind arm smccc features when discovered 2022-06-23 13:12:56 -04:00
rational.h lib: rational: copy the rational fraction lib routines from Linux 2021-06-11 16:34:52 +05:30
rbtree.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
rbtree_augmented.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
screen_info.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
serial_reg.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
sizes.h
stat.h
stddef.h Fix sparse checks processing 2023-05-15 14:08:45 -04:00
string.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
stringify.h
time.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
typecheck.h
types.h common: define time_t as 64bit 2023-07-25 12:44:46 -04:00
utf.h usb: gadget: move utf8_to_utf16le to header file 2021-01-31 14:08:56 +01:00
xxhash.h
zstd.h lib: zstd: update to latest Linux zstd 1.5.2 2023-01-18 19:04:17 -05:00
zstd_errors.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
zstd_lib.h include: linux: Remove duplicate newlines 2024-07-29 15:01:04 -06:00