[PATCH v3] mtd: cfi_cmdset_0002: cap the write-buffer chunk at 256 bytes on an x8 device

Miquel Raynal miquel.raynal at bootlin.com
Fri Sep 25 07:28:35 PDT 2026


On Wed, 16 Sep 2026 16:27:31 +0000, Orgad Shaneh wrote:
> The Write to Buffer command takes the number of words to program minus
> one, and do_write_buffer() sends that count as a single bus word:
> 
> 	map_write(map, CMD(words - 1), cmd_adr);
> 
> CMD() replicates the value into every device lane, so each device reads
> the count off its own data lines - eight of them on an x8 part. A count
> that does not fit in eight bits is truncated there, which limits one
> Write to Buffer to 256 words on an x8 device, however large a buffer the
> chip advertises in its CFI query.
> 
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: cfi_cmdset_0002: cap the write-buffer chunk at 256 bytes on an x8 device
      commit: cfc5ebc9540e29f8f96db88bbfa261139e5afedb

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




More information about the linux-mtd mailing list