On 06/22/2016 09:07 AM, Mark Brown wrote: >> + /* >> + * MIPS endianness is configured by boot strap, which also reverses all >> + * bus endianness (i.e., big-endian CPU + big endian bus ==> native >> + * endian I/O). >> + * >> + * Other architectures (e.g., ARM) either do not support big endian, or >> + * else leave I/O in little endian mode. >> + */ >> + if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) >> + return ioread32be(qspi->base[type] + offset); >> + else >> + return readl_relaxed(qspi->base[type] + offset); > > Just put this in the DT like we do for other MIPS IPs. As in, putting a native-endian property for this node, right? -- Florian -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html