mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] integrate CFI Flash driver into mtd
@ 2013-02-15  8:04 Sascha Hauer
  2013-02-15  8:04 ` [PATCH 1/6] libmtd: rename functions from mtd_* to libmtd_* Sascha Hauer
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Sascha Hauer @ 2013-02-15  8:04 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-02-19 18:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-15  8:04 [PATCH] integrate CFI Flash driver into mtd Sascha Hauer
2013-02-15  8:04 ` [PATCH 1/6] libmtd: rename functions from mtd_* to libmtd_* Sascha Hauer
2013-02-15  8:04 ` [PATCH 2/6] mtd: rename mtd file operations callback functions Sascha Hauer
2013-02-15  8:04 ` [PATCH 3/6] mtd: Add mtd_* functions Sascha Hauer
2013-02-15  8:04 ` [PATCH 4/6] mtd: Use mtd_* functions where appropriate Sascha Hauer
2013-02-15  8:04 ` [PATCH 5/6] mtd: implement mtd_lock and mtd_unlock Sascha Hauer
2013-02-15  8:04 ` [PATCH 6/6] nor flash: integrate into mtd Sascha Hauer
2013-02-15  8:11 ` [PATCH] " Sascha Hauer
2013-02-15  8:12   ` Sascha Hauer
2013-02-17 10:59     ` Alexander Aring
2013-02-18 10:24       ` Sascha Hauer
2013-02-19 13:23         ` Alexander Aring
2013-02-19 18:45           ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox