[PATCH 2/2] mtd: rawnand: Ensure continuous reads are well disabled

Miquel Raynal miquel.raynal at bootlin.com
Mon Mar 11 01:24:44 PDT 2024


On Thu, 2024-03-07 at 11:53:15 UTC, Miquel Raynal wrote:
> The cont_read.ongoing flag should only be enabled at the beginning of a
> read operation, and also disabled at its end, so we never end up
> triggering nasty side effects outside of this scope. The mtd core being
> highly serialized, we should not be bothered by parallel accesses
> anyway.
> 
> In case we reach the end of a read operation and the boolean was not
> properly disabled, it's a bug, but it's totally manageable. So warn, and
> then fix the boolean state.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next.

Miquel



More information about the linux-mtd mailing list