Re: [PATCH v3] mtd: cfi_cmdset_0002: also clamp the write buffer of an x16 part strapped to x8

From: Miquel Raynal

Date: Tue Nov 17 2026 - 08:48:16 EST


On Sat, 07 Nov 2026 17:49:39 +0000, Orgad Shaneh wrote:
> Commit cfc5ebc9540e ("mtd: cfi_cmdset_0002: cap the write-buffer chunk
> at 256 bytes on an x8 device") limits a Write to Buffer to 256 bytes
> when cfi->device_type is CFI_DEVICETYPE_X8, because do_write_buffer()
> sends the word count as a single bus word and an 8-bit data lane
> truncates it.
>
> The M29EW that commit was written for is an x16 part strapped to x8.
> The probe reports it as
>
> [...]

Applied to mtd/fixes, thanks!

[1/1] mtd: cfi_cmdset_0002: also clamp the write buffer of an x16 part strapped to x8
commit: 760d2efe91a84363d25c1051a10572242e75fe86

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl