[PATCH] mtd: spinand: Fix MTD_OPS_AUTO_OOB requests

Miquel Raynal miquel.raynal at bootlin.com
Thu Jan 14 10:47:51 EST 2021


On Thu, 2021-01-07 at 08:38:13 UTC, Miquel Raynal wrote:
> The initial change breaking the logic is
> commit 3d1f08b032dc ("mtd: spinand: Use the external ECC engine logic")
> It inadvertently dropped proper OOB support while doing something
> else.
> 
> Shortly later, half of it got re-integrated by
> commit 868cbe2a6dce ("mtd: spinand: Fix OOB read")
> (pointing by the way to a  more early change which had nothing to do
> with the issue). Problem is, this commit failed to revert the faulty
> change entirely and missed the logic handling MTD_OPS_AUTO_OOB
> requests.
> 
> Let's fix this mess by re-inserting the missing part now.
> 
> Fixes: 868cbe2a6dce ("mtd: spinand: Fix OOB read")
> Reported-by: Felix Fietkau <nbd at nbd.name>
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>

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

Miquel



More information about the linux-mtd mailing list