On Monday 24 June 2013 12:26:03 Alexey Brodkin wrote: > Initially different data accessors were used for LE abd BE CPUs: > "ioread16" in "ace_datain_be16" and "ioread16be" in "ace_datain_le16". > The same with writes. > > While it worked in some cases (for example on BE PPC) it didn't work in > others (LE ARC). > > Mentioned functions access data (by 16-bit chunks) from storage (i.e. > CompactFlash card) via DATABUFREG of Xilinx SystemACE CF controller. > And to interpret data properly CPU needs to access data in DATABUFREG > with native endianess. > > Signed-off-by: Alexey Brodkin <abrodkin@xxxxxxxxxxxx> > > Cc: Vineet Gupta <vgupta@xxxxxxxxxxxx> > Cc: Mischa Jonker <mjonker@xxxxxxxxxxxx> > Cc: Grant Likely <grant.likely@xxxxxxxxxxxx> > Cc: Arnd Bergmann <arnd@xxxxxxxx> > Cc: Michal Simek <monstr@xxxxxxxxx> > Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> > Cc: Andy Shevchenko <andy.shevchenko@xxxxxxxxx> Acked-by: Arnd Bergmann <arnd@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html