Commit 828f6df
committed
mtd: rawnand: Clarify conditions to enable continuous reads
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@vger.kernel.org
Fixes: 003fe4b ("mtd: rawnand: Support for sequential cache reads")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Martin Hundebøll <martin@geanix.com>
Link: https://lore.kernel.org/linux-mtd/20231215123208.516590-5-miquel.raynal@bootlin.com1 parent a62c459 commit 828f6df
1 file changed
Lines changed: 16 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3460 | 3460 | | |
3461 | 3461 | | |
3462 | 3462 | | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
3463 | 3466 | | |
3464 | 3467 | | |
3465 | 3468 | | |
3466 | 3469 | | |
3467 | | - | |
3468 | | - | |
3469 | | - | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
3470 | 3480 | | |
3471 | | - | |
3472 | 3481 | | |
3473 | | - | |
3474 | 3482 | | |
3475 | | - | |
3476 | | - | |
3477 | | - | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
3478 | 3486 | | |
3479 | 3487 | | |
3480 | 3488 | | |
| |||
0 commit comments