On Thu, 2013-07-11 at 15:28 +0200, Alexander Graf wrote: > So IIUC before cpu_inw and inl were doing portio accesses in host > native endianness. Now with this change they do little endian > accesses. All sensible callers of cpu_inX assume that data is passed > in native endianness though and already do the little endian > conversion themselves. > > Semantically having your PCI host bridge do the endianness conversion > is the correct way of handling it, as that's where the conversion > happens. If it makes life easier to do it in the isa bridging code, > that's fine for me too though. But then we'll have to get rid of all > endianness swaps that already happen in PCI bridges.
Or stop being utterly insane and remove all that endianness crap in bridges etc... :-) The whole thing is completely ass backward to begin with. Cheers, Ben.