[PATCH] Raw access for the ixp4xx mapping driver.

Alexey Zaytsev alexey.zaytsev at gmail.com
Wed Apr 19 15:04:59 EDT 2006


Hello.

This patch adds an mtd device to access the whole flash.
I see no reason why there should be no such device for this driver, and some
mapping drivers support this usefull feature.

The patch should be applyed on top of my previous patch.

--- linux-2.6.16.1.orig/drivers/mtd/maps/ixp4xx.c       2006-04-19
22:15:30.000000000 +0400
+++ linux-2.6.16.1/drivers/mtd/maps/ixp4xx.c    2006-04-19
22:43:45.000000000 +0400
@@ -169,6 +169,7 @@
 #ifdef CONFIG_MTD_PARTITIONS
               del_mtd_partitions(info->mtd);
 #endif
+               del_mtd_device(info->mtd);
               map_destroy(info->mtd);
       }
       if (info->map.virt)
@@ -257,6 +258,8 @@
       /* Use the fast version */
       info->map.write = ixp4xx_write16;

+       add_mtd_device(info->mtd);
+
 #ifdef CONFIG_MTD_PARTITIONS
       err = parse_mtd_partitions(info->mtd, probes, &info->partitions, 0);
       if (err > 0) {




More information about the linux-mtd mailing list