Re: [PATCH] I/O helpers rework

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

 



On Thu, 6 Jan 2005, Herbert Valerio Riedel wrote:

> jfyi, this change broke mtd and au1xxx-usb on big endian au1xxx systems,
> as the _raw calls do suddenly byteswapping :-(
> 
> was this intended?

 It was.  Generic code elsewhere expects it and the MIPS implementation 
used to be broken because of that.  Note these functions are intended for 
PCI/EISA/ISA accesses only and these buses are little-endian by 
definition.  More specifically __raw_ calls are mainly for PIO copying 
to/from memory over these buses when you want to keep byte ordering the 
same as it would be for a DMA transfer.

 If you have a driver that handles a non-PCI/EISA/ISA device you may and 
probably should use bus_ calls to get a non-swapped access.

  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