mtd/drivers/mtd/maps arctic-mtd.c,1.2,1.3 ebony.c,1.2,1.3 beech-mtd.c,1.2,1.3

Marius Groeger mag at infradead.org
Fri Jan 31 03:27:41 EST 2003


Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv16923

Modified Files:
	arctic-mtd.c ebony.c beech-mtd.c 
Log Message:
Add mb() for write8/16/32 hooks.


Index: arctic-mtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/arctic-mtd.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- arctic-mtd.c	30 Jan 2003 11:03:45 -0000	1.2
+++ arctic-mtd.c	31 Jan 2003 08:27:38 -0000	1.3
@@ -80,18 +80,21 @@
 arctic_mtd_write8(struct map_info *map, u8 data, unsigned long address)
 {
 	__raw_writeb(data, map->map_priv_1 + address);
+	mb();
 }
 
 static void
 arctic_mtd_write16(struct map_info *map, u16 data, unsigned long address)
 {
 	__raw_writew(data, map->map_priv_1 + address);
+	mb();
 }
 
 static void
 arctic_mtd_write32(struct map_info *map, u32 data, unsigned long address)
 {
 	__raw_writel(data, map->map_priv_1 + address);
+	mb();
 }
 
 static void

Index: ebony.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/ebony.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ebony.c	30 Jan 2003 11:03:45 -0000	1.2
+++ ebony.c	31 Jan 2003 08:27:38 -0000	1.3
@@ -49,16 +49,19 @@
 static void ebony_write8(struct map_info *map, __u8 d, unsigned long adr)
 {
 	__raw_writeb(d, map->map_priv_1 + adr);
+	mb();
 }
 
 static void ebony_write16(struct map_info *map, __u16 d, unsigned long adr)
 {
 	__raw_writew(d, map->map_priv_1 + adr);
+	mb();
 }
 
 static void ebony_write32(struct map_info *map, __u32 d, unsigned long adr)
 {
 	__raw_writel(d, map->map_priv_1 + adr);
+	mb();
 }
 
 static void ebony_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)

Index: beech-mtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/beech-mtd.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- beech-mtd.c	30 Jan 2003 11:03:45 -0000	1.2
+++ beech-mtd.c	31 Jan 2003 08:27:38 -0000	1.3
@@ -75,18 +75,21 @@
 beech_mtd_write8(struct map_info *map, __u8 data, unsigned long address)
 {
 	__raw_writeb(data, map->map_priv_1 + address);
+	mb();
 }
 
 static void
 beech_mtd_write16(struct map_info *map, __u16 data, unsigned long address)
 {
 	__raw_writew(data, map->map_priv_1 + address);
+	mb();
 }
 
 static void
 beech_mtd_write32(struct map_info *map, __u32 data, unsigned long address)
 {
 	__raw_writel(data, map->map_priv_1 + address);
+	mb();
 }
 
 static void





More information about the linux-mtd-cvs mailing list