Re: [PATCH] I/O helpers rework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 10 Jan 2005, Herbert Valerio Riedel wrote:

> On Mon, 2005-01-10 at 15:46 +0100, Herbert Valerio Riedel wrote:
> > so this means, the mtd subsystem should use them and that the patch
> > below is the way to fix it? (hoping it won't brake on other systems?)
> 
> sorry, wrong patch... the patch below should have s/__raw_/bus_/g
> instead of s/__raw_//g;

 Probably, although <linux/mtd/map.h> seems device-independent and that 
may mean you might want to take the endianness of the bus an MTD is 
connected to, to preserve data consistency when moving the MTD between 
systems of different endiannesses (it may be non-volatile memory of some 
sort).

> anyway, are the bus_# memory accessors defined for all archs at all?

 Not at all, I'm afraid, and fixing that might be a good idea.
Unfortunately most platforms use a single endianness only and therefore
have a biased view on these accessory functions.  Especially little-endian
folks may have troubles understanding what's this all about.

  Maciej


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux