]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: LPC32xx: Fix reset function
authorRoland Stigge <stigge@antcom.de>
Tue, 9 Sep 2014 13:13:14 +0000 (15:13 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 10 Sep 2014 15:25:14 +0000 (17:25 +0200)
commit68d0ac6fe74fbe01c24e5cd49f1dcfad55fc734f
tree28b91fead017b35b735b995c7ada4146e1ce7859
parent0af48307da702c5aa0ff64925800493f49ea95b1
ARM: LPC32xx: Fix reset function

In the recent change to the reset function API (commit
2341c666fdd55492be5e30de950293b38c5bf45b), the mode argument changed from a
char to an enum. lpc23xx_restart() only handles REBOOT_SOFT and REBOOT_HARD,
but the new kernel code emits REBOOT_COLD (0) on reboots now which leads to
lpc32xx simply not rebooting (but halting).

This patch fixes this by just resetting unconditionally as on other platforms
(e.g. mach-bcm2835).

Pulling lpc32xx_watchdog_reset() into lpc23xx_restart() since the while() in
lpc23xx_restart() is part of the procedure anyway and lpc32xx_watchdog_reset()
isn't used anywhere else anymore.

Signed-off-by: Roland Stigge <stigge@antcom.de>
arch/arm/mach-lpc32xx/common.c