]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] NAND: Fix breakage all over the place
authorThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Tue, 20 Jun 2006 18:05:05 +0000 (20:05 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 20 Jun 2006 19:31:24 +0000 (20:31 +0100)
commit394a89baab109d6ebe5fd471df1968af46cd795e
tree9ad49e850cdfe9868a19a37681bbf4d403e47ed3
parent11f8aed18e034723191a43b1bfcf88e2e7800fa2
[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>
drivers/mtd/mtdchar.c
drivers/mtd/nand/diskonchip.c
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h