[PATCH 0/2] drivers/mtd: add a core

Robert Jarzmik robert.jarzmik at free.fr
Mon Dec 12 12:14:04 EST 2011


This patchset aims at bringing a common core to all mtd
devices. This minimal core provides :
 - add_mtd_device()
 - del_mtd_device()

The add_mtd_device() creates 2 character devices, as
explained in the second commit.

This core will be used by drivers/mtd/devices/* (soon to
come), and hopefully drivers/mtd/nand/* if we agree on
add_mtd_device() functionality.

The core should provide read/write/erase capability which
suits all the devices (ie. nand, nor and bare).

If no agreement emerges, this core will be moved into
drivers/mtd/devices.

The nand devices are left as they were, and not converted to
the new core. This conversion will only be possible after
some feedback about the needs of nand legacy drivers.

Cheers.

--
Robert

Robert Jarzmik (2):
  drivers/mtd: introduce {add,del}_nand_device
  drivers/mtd: add a core mtd handler

 drivers/mtd/Kconfig               |    5 +
 drivers/mtd/Makefile              |    2 +
 drivers/mtd/core.c                |  314 +++++++++++++++++++++++++++++++++++++
 drivers/mtd/nand/atmel_nand.c     |    2 +-
 drivers/mtd/nand/diskonchip.c     |    8 +-
 drivers/mtd/nand/nand.c           |    4 +-
 drivers/mtd/nand/nand.h           |    3 +
 drivers/mtd/nand/nand_base.c      |    2 +-
 drivers/mtd/nand/nand_imx.c       |    2 +-
 drivers/mtd/nand/nand_omap_gpmc.c |    2 +-
 drivers/mtd/nand/nand_s3c2410.c   |    2 +-
 drivers/mtd/nand/nomadik_nand.c   |    2 +-
 12 files changed, 336 insertions(+), 12 deletions(-)
 create mode 100644 drivers/mtd/core.c

-- 
1.7.5.4




More information about the barebox mailing list