On Wed, Jan 13, 2010 at 10:06:31PM -0500, Jean-Hugues Deschenes wrote: > > > In the commit ed5e1dd5 (i2c-designware: Consolidate to use 32-bit > > > word accesses), I tried to sort out the I/O endian issue, but it > > > seems doesn't work for your environment, R/W data is swapped :-( > > > > I think this one of those weird cases where you have _both_ types of > > endianess of peripherals where anything in readl/writel isn't going > > to help you out. > > Actually, the specific case I'm interested in is one where I have an > SOC built around an ARM core running in little-endian mode, in which > the Designware IP has been instantiated and hooked up (to the internal > data bus) in big endian format. > > This patch could also come in handy, for example, if someone were to > run an armeb kernel on an SOC where the DW IP has been instantiated > and hooked up in little endian format (as is probably the case for > most ARM-based SOCs out there). I think this is currently an oditity, most ARM systems are still armel, especiailly since very few distributions do armeb -- Ben Q: What's a light-year? A: One-third less calories than a regular year. -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html