]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[MTD] fix CFI point method for discontiguous maps
authorAndy Lowe <alowe@mvista.com>
Fri, 12 Jan 2007 23:05:10 +0000 (18:05 -0500)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 23 Sep 2007 17:40:49 +0000 (18:40 +0100)
commit097f2576eb7dbc8cd5f610847f229f4fea305b80
tree809809fbaa7b99d1942ef7583920f17e4f1f1e9d
parente644f7d6289456657996df4192de76c5d0a9f9c7
[MTD] fix CFI point method for discontiguous maps

The CFI probe routine is capable of detecting flash banks consisting of
identical chips mapped to physically discontiguous addresses.  (One
common way this can occur is if a flash bank is populated with chips of
less capacity than the hardware was designed to support.)  The CFI
point() routine currently ignores any such gaps.  This patch fixes
the CFI point() routine so that it truncates any request that would
span a gap.

Signed-off-by: Andy Lowe <alowe@mvista.com>
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/chips/cfi_cmdset_0001.c