On Fri, 2024-02-23 at 11:55:43 UTC, Miquel Raynal wrote: > We need to avoid the first page if we don't read it entirely. > We need to avoid the last page if we don't read it entirely. > While rather simple, this logic has been failed in the previous > fix. This time I wrote about 30 unit tests locally to check each > possible condition, hopefully I covered them all. > > Reported-by: Christophe Kerello <christophe.kerello@xxxxxxxxxxx> > Closes: https://lore.kernel.org/linux-mtd/20240221175327.42f7076d@xps-13/T/#m399bacb10db8f58f6b1f0149a1df867ec086bb0a > Suggested-by: Christophe Kerello <christophe.kerello@xxxxxxxxxxx> > Fixes: 828f6df1bcba ("mtd: rawnand: Clarify conditions to enable continuous reads") > Cc: stable@xxxxxxxxxxxxxxx > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > Tested-by: Christophe Kerello <christophe.kerello@xxxxxxxxxxx> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next. Miquel