]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
NOMMU: Add support for direct mapping through mtdconcat if possible
authorDavid Howells <dhowells@redhat.com>
Thu, 12 Feb 2009 10:40:05 +0000 (10:40 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 24 Mar 2009 09:01:08 +0000 (09:01 +0000)
commit6e232cfce35a20a8702d9ac7709d35030c1b3271
tree734facadf7ecfc120196a257f8e4e34d31d69a49
parent402d326519c1a4859c527702383f4e60f606ef52
NOMMU: Add support for direct mapping through mtdconcat if possible

Add support for direct mapping through mtdconcat, if possible, by attaching the
samebacking_dev_info structure to the master.

It has some restrictions:

 (1) It won't permit direct mapping of concatenated devices that have differing
     BDIs.

 (2) It doesn't support maps that span the 'gap' between devices, although it
     possibly could if the devices spanned across return compatible
     (ie. contiguous) addresses from their get_unmapped_area() ops.

Signed-off-by: Gavin Lambert <gavinl@compacsort.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Bernd Schmidt <bernd.schmidt@analog.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdconcat.c