[MTD] NAND Expose the new raw mode function and status info to userspace
authorThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Mon, 29 May 2006 22:37:34 +0000 (00:37 +0200)
committerThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Mon, 29 May 2006 22:37:34 +0000 (00:37 +0200)
commitf1a28c02843efcfcc41982149880bac3ac180234
treeb15ca1a140e463ef3cde6b9a8591e7be172ee1f1
parent9a1fcdfd4bee27c418424cac47abf7c049541297
[MTD] NAND Expose the new raw mode function and status info to userspace

The raw read/write access to NAND (without ECC) has been changed in the
NAND rework. Expose the new way - setting the file mode via ioctl - to
userspace. Also allow to read out the ecc statistics information so userspace
tools can see that bitflips happened and whether errors where correctable
or not. Also expose the number of bad blocks for the partition, so nandwrite
can check if the data fits into the parition before writing to it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/mtdchar.c
drivers/mtd/mtdconcat.c
drivers/mtd/mtdpart.c
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c
include/linux/mtd/mtd.h
include/mtd/mtd-abi.h