patch for 64 bit wide flash

Jörn Engel joern at wohnheim.fh-wedel.de
Thu Feb 14 07:32:23 EST 2002


Hi!

> I've got a 64 bit wide flash consisting of eight 8bit wide chips.
> Here's a patch against the 2.4.16 kernel
> 
> I think I've added enough code to support all 64 bit wide
> configurations,
> but somebody whould probably check me on it.

After merging with current cvs again, I found an issue with your code
and my kernel:

> diff -urbBN --exclude=.*depend --exclude=*.flags --exclude=*.o linux-original/drivers/mtd/maps/physmap.c linux/drivers/mtd/maps/physmap.c
> --- linux-original/drivers/mtd/maps/physmap.c	Thu Oct  4 15:14:59 2001
> +++ linux/drivers/mtd/maps/physmap.c	Tue Dec 18 14:06:06 2001
> @@ -10,6 +10,7 @@
>  #include <asm/io.h>
>  #include <linux/mtd/mtd.h>
>  #include <linux/mtd/map.h>
> +#include <linux/mtd/partitions.h>
>  #include <linux/config.h>
>  
>  
> @@ -34,6 +35,11 @@
>  	return __raw_readl(map->map_priv_1 + ofs);
>  }
>  
> +__u64 physmap_read64(struct map_info *map, unsigned long ofs)
> +{
> +	return __raw_readll(map->map_priv_1 + ofs);
> +}

__raw_readll is not defined in our kernel (2.4.2 based). Worse, I
couldn't find that definition in the 2.4.17 kernel, either. Is this
specific to your private kernel?

Joern

PS: The same applies to __raw_writell, of course.




More information about the linux-mtd mailing list