[MTD] NAND: Fix breakage all over the place
Following problems are addressed:
- wrong status caused early break out of nand_wait()
- removed the bogus status check in nand_wait() which
is a relict of the abandoned support for interrupted
erase.
- status check moved to the correct place in read_oob
- oob support for syndrom based ecc with strange layouts
- use given offset in the AUTOOOB based oob operations
Partially based on a patch from Vitaly Vool <vwool@ru.mvista.com>
Thanks to Savin Zlobec <savin@epico.si> for tracking down the
status problem.
Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- drivers/mtd/mtdchar.c 4 additions, 4 deletionsdrivers/mtd/mtdchar.c
- drivers/mtd/nand/diskonchip.c 1 addition, 1 deletiondrivers/mtd/nand/diskonchip.c
- drivers/mtd/nand/nand_base.c 215 additions, 82 deletionsdrivers/mtd/nand/nand_base.c
- include/linux/mtd/nand.h 11 additions, 1 deletioninclude/linux/mtd/nand.h
Please register or sign in to comment