On Fri, 2023-12-15 at 12:32:08 UTC, Miquel Raynal wrote: > The current logic is probably fine but is a bit convoluted. Plus, we > don't want partial pages to be part of the sequential operation just in > case the core would optimize the page read with a subpage read (which > would break the sequence). This may happen on the first and last page > only, so if the start offset or the end offset is not aligned with a > page boundary, better avoid them to prevent any risk. > > Cc: stable@xxxxxxxxxxxxxxx > Fixes: 003fe4b9545b ("mtd: rawnand: Support for sequential cache reads") > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next. Miquel