Revert "mfd: syscon: Remove repetition of the regmap_get_val_endian()"
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 8 Oct 2022 15:47:00 +0000 (09:47 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 23 Oct 2022 19:04:56 +0000 (12:04 -0700)
commitca4582c286aa4465f9d1a72bef34b04ee907d42e
treed2f347d859ad983905224e5f64832643a929f8b2
parent52826d3b2d1d8e1180a84bef7d72596d6a024a38
Revert "mfd: syscon: Remove repetition of the regmap_get_val_endian()"

This reverts commit 72a95859728a7866522e6633818bebc1c2519b17.

It broke reboots on big-endian MIPS and MIPS64 malta QEMU instances,
which use the syscon driver.  Little-endian is not effected, which means
likely it's important to handle regmap_get_val_endian() in this function
after all.

Fixes: 72a95859728a ("mfd: syscon: Remove repetition of the regmap_get_val_endian()")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Lee Jones <lee@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mfd/syscon.c