linux/drivers/nvmem
Stephen Boyd 3b2b9ead32 nvmem: qfprom: Specify LE device endianness
The qfprom is a little endian device, but so far we've been
relying on the regmap mmio bus handling this for us without
explicitly stating that fact. After commit 4a98da2164cf
(regmap-mmio: Use native endianness for read/write, 2015-10-29),
the regmap mmio bus will read/write with the __raw_*() IO
accessors, instead of using the readl/writel() APIs that do
proper byte swapping for little endian devices.

So if we're running on a big endian processor and haven't
specified the endianness explicitly in the regmap config or in
DT, we're going to switch from doing little endian byte swapping
to big endian accesses without byte swapping, leading to some
confusing results. Specify the endianness explicitly so that the
regmap core properly byte swaps the accesses for us.

Cc: Rajendra Nayak <rnayak@codeaurora.org>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Tyler Baker <tyler.baker@linaro.org>
Cc: Simon Arlott <simon@fire.lp0.eu>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-07 23:09:13 -08:00
..
Kconfig nvmem: Adding bindings for rockchip-efuse 2015-10-04 12:08:14 +01:00
Makefile nvmem: Adding bindings for rockchip-efuse 2015-10-04 12:08:14 +01:00
core.c nvmem: core: return error for non word aligned access 2016-02-07 23:09:13 -08:00
imx-ocotp.c nvmem: imx-ocotp: Add i.MX6 OCOTP driver 2015-10-04 12:06:13 +01:00
mxs-ocotp.c nvmem: add driver for ocotp in i.MX23 and i.MX28 2015-10-04 12:06:13 +01:00
qfprom.c nvmem: qfprom: Specify LE device endianness 2016-02-07 23:09:13 -08:00
rockchip-efuse.c nvmem: rockchip_efuse_regmap_config can be static 2015-10-04 12:08:14 +01:00
sunxi_sid.c nvmem: sunxi: Check for memory allocation failure 2015-10-04 12:09:43 +01:00
vf610-ocotp.c nvmem: Add Vybrid OCOTP support 2015-10-04 12:06:13 +01:00