OpenCloudOS-Kernel/drivers/mtd/nand/spi
Miquel Raynal e708789c4a mtd: spinand: Fix MTD_OPS_AUTO_OOB requests
The initial change breaking the logic is
commit 3d1f08b032 ("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 868cbe2a6d ("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: 868cbe2a6d ("mtd: spinand: Fix OOB read")
Reported-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210107083813.24283-1-miquel.raynal@bootlin.com
2021-01-14 16:44:41 +01:00
..
Kconfig mtd: spinand: Use the external ECC engine logic 2020-12-10 22:37:30 +01:00
Makefile mtd: spinand: Add initial support for Paragon PN26G0xA 2019-06-27 20:13:07 +02:00
core.c mtd: spinand: Fix MTD_OPS_AUTO_OOB requests 2021-01-14 16:44:41 +01:00
gigadevice.c mtd: spinand: gigadevice: Add support for GD5F4GQ4xC 2020-09-30 16:44:16 +02:00
macronix.c mtd: spinand: macronix: Add support for MX35LFxG24AD 2020-12-10 22:37:54 +01:00
micron.c mtd: spinand: micron: Add support for MT29F2G01AAAED 2020-12-10 22:37:32 +01:00
paragon.c mtd: spinand: rework detect procedure for different READ_ID operation 2020-03-09 14:50:19 +01:00
toshiba.c mtd: spinand: toshiba: Demote non-conformant kernel-doc header 2020-11-20 12:37:31 +01:00
winbond.c mtd: spinand: rework detect procedure for different READ_ID operation 2020-03-09 14:50:19 +01:00