[PATCH v3 1/2] mtd: spi-nor: core: avoid odd length/address reads on 8D-8D-8D mode
Pratyush Yadav
pratyush at kernel.org
Mon Sep 1 07:19:49 PDT 2025
Hi,
On Tue, Jul 08 2025, ziniu.wang_1 at nxp.com wrote:
> From: Pratyush Yadav <p.yadav at ti.com>
>
> On Octal DTR capable flashes like Micron Xcella reads cannot start or
> end at an odd address in Octal DTR mode. Extra bytes need to be read at
> the start or end to make sure both the start address and length remain
> even.
>
> To avoid allocating too much extra memory, thereby putting unnecessary
> memory pressure on the system, the temporary buffer containing the extra
> padding bytes is capped at PAGE_SIZE bytes. The rest of the 2-byte
> aligned part should be read directly in the main buffer.
>
> Signed-off-by: Pratyush Yadav <p.yadav at ti.com>
> Reviewed-by: Michael Walle <michael at walle.cc>
> Signed-off-by: Luke Wang <ziniu.wang_1 at nxp.com>
Series applied to spi-nor/next. Thanks!
[...]
--
Regards,
Pratyush Yadav
More information about the linux-mtd
mailing list