This is some general mtd cleanup and the integration of the CFI Flash driver into mtd. Background is that current ubiformat implementation relies on the mtd API.
First the mtd_read/write and friends we currently have are renamed to libmtd_*, because they implement the functions from libmtd. Then our internal mtd_read/write functions are renamed to mtd_op_* because they implement the file_operations. Then we finally have our namespace clean and can implement mtd_read/write as global (kernel compatible) functions. We currently miss the mtd_(un)lock functions needed for CFI flash. With this in place the final patch integrates the CFI driver into mtd. Sascha ---------------------------------------------------------------- Sascha Hauer (6): libmtd: rename functions from mtd_* to libmtd_* mtd: rename mtd file operations callback functions mtd: Add mtd_* functions mtd: Use mtd_* functions where appropriate mtd: implement mtd_lock and mtd_unlock nor flash: integrate into mtd arch/arm/configs/edb93xx_defconfig | 1 + arch/arm/configs/eukrea_cpuimx27_defconfig | 1 + arch/arm/configs/freescale_mx51_babbage_defconfig | 1 + arch/arm/configs/mmccpu_defconfig | 1 + arch/arm/configs/mx21ads_defconfig | 1 + arch/arm/configs/mx27ads_defconfig | 1 + arch/arm/configs/netx_nxdb500_defconfig | 1 + arch/arm/configs/pcm027_defconfig | 1 + arch/arm/configs/pm9263_defconfig | 1 + arch/arm/configs/scb9328_defconfig | 1 + arch/blackfin/configs/ipe337_defconfig | 1 + arch/nios2/configs/generic_defconfig | 1 + arch/ppc/configs/pcm030_defconfig | 1 + commands/ubiformat.c | 8 +- drivers/Kconfig | 1 - drivers/Makefile | 1 - drivers/mtd/Kconfig | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/core.c | 111 +++++++++++++++++---- drivers/mtd/mtdraw.c | 2 +- drivers/mtd/nand/nand_bbt.c | 4 +- drivers/{ => mtd}/nor/Kconfig | 6 +- drivers/{ => mtd}/nor/Makefile | 0 drivers/{ => mtd}/nor/cfi_flash.c | 82 ++++----------- drivers/{ => mtd}/nor/cfi_flash.h | 1 - drivers/{ => mtd}/nor/cfi_flash_amd.c | 0 drivers/{ => mtd}/nor/cfi_flash_intel.c | 0 drivers/mtd/ubi/io.c | 8 +- include/linux/mtd/mtd.h | 9 ++ include/mtd/libmtd.h | 8 +- lib/libmtd.c | 14 +-- lib/libscan.c | 2 +- 32 files changed, 157 insertions(+), 115 deletions(-) rename drivers/{ => mtd}/nor/Kconfig (96%) rename drivers/{ => mtd}/nor/Makefile (100%) rename drivers/{ => mtd}/nor/cfi_flash.c (93%) rename drivers/{ => mtd}/nor/cfi_flash.h (99%) rename drivers/{ => mtd}/nor/cfi_flash_amd.c (100%) rename drivers/{ => mtd}/nor/cfi_flash_intel.c (100%) _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox