]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Malta: Fixup reboot
authorPaul Burton <paul.burton@imgtec.com>
Fri, 14 Oct 2016 09:17:32 +0000 (10:17 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 3 Nov 2016 23:27:27 +0000 (00:27 +0100)
commit1e93300d0d9c7244276aedbc28780499003c5659
tree01522d8d158cb7dbea251cce9763f4742e7ca636
parent3e748cdf52d7b3e0245a33df076172594c684ea4
MIPS: Malta: Fixup reboot

Commit 82389ae2b2fd ("MIPS: Malta: Use syscon-reboot driver to reboot")
converted the Malta board to use the generic syscon-reboot driver to
handle reboots, but incorrectly used the value 0x4d rather than 0x42 as
the magic to write to the reboot register.

I also incorrectly believed that syscon/regmap would default to native
endianness, but this isn't the case. Force this by specifying with a
native-endian property in the devicetree.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Fixes: 82389ae2b2fd ("MIPS: Malta: Use syscon-reboot driver to reboot")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Cc: linux-mips@linux-mips.org
Tested-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Maciej W. Rozycki <macro@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/14396/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/boot/dts/mti/malta.dts