mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] integrate CFI Flash driver into mtd
Date: Fri, 15 Feb 2013 09:04:53 +0100	[thread overview]
Message-ID: <1360915499-1659-1-git-send-email-s.hauer@pengutronix.de> (raw)

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

             reply	other threads:[~2013-02-15  8:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-15  8:04 Sascha Hauer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1360915499-1659-1-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox