Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=355aaffdaf82c95a004daedd1ea64fc61a25b8db
Commit:     355aaffdaf82c95a004daedd1ea64fc61a25b8db
Parent:     c596cc46ba1c5769866efe586daff3422bc31afe
Author:     Linus Torvalds <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 12:55:20 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 12:55:20 2007 -0700

    Reinstate lost flush_ioremap_region() fix to pxa2xx-flash driver
    
    Commit 90833fdab89da02fc0276224167f0a42e5176f41 ("[ARM] 4554/1: replace
    consistent_sync() with flush_ioremap_region()") introduced a new
    "flush_ioremap_region()" function to be used by the MTD mainstone-flash
    and lubbock-flash drivers to fix a regression from around 2.6.18.
    
    Those drivers were independently merged into a single driver by Todd
    Poynor in commit e644f7d6289456657996df4192de76c5d0a9f9c7 ("[MTD] MAPS:
    Merge Lubbock and Mainstone drivers into common PXA2xx driver")
    
    Later, those two commits were merged into the main MTD tree by commit
    b160292cc216a50fd0cd386b0bda2cd48352c73b ("Merge Linux 2.6.23") by David
    Woodhouse, but in that merge, the fix to use flush_iomap_region() got
    lost (as it was to files that now no longer existed).
    
    This reinstates the fix in the new driver.
    
    Noticed-by: Russell King <[EMAIL PROTECTED]>
    Tested-and-acked-by: Nicolas Pitre <[EMAIL PROTECTED]>
    Cc: David Woodhouse <[EMAIL PROTECTED]>
    Cc: Jared Hulbert <[EMAIL PROTECTED]>
    Cc: Todd Poynor <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/mtd/maps/pxa2xx-flash.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index cb933ac..8211329 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -14,20 +14,20 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/platform_device.h>
-#include <linux/dma-mapping.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
 
 #include <asm/io.h>
 #include <asm/hardware.h>
+#include <asm/cacheflush.h>
 
 #include <asm/mach/flash.h>
 
 static void pxa2xx_map_inval_cache(struct map_info *map, unsigned long from,
                                      ssize_t len)
 {
-       consistent_sync((char *)map->cached + from, len, DMA_FROM_DEVICE);
+       flush_ioremap_region(map->phys, map->cached, from, len);
 }
 
 struct pxa2xx_flash_info {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to