Commit 60a9f376 authored by Russell King's avatar Russell King Committed by Ben Hutchings

ARM: sa1100: clear reset status prior to reboot

commit da60626e upstream.

Clear the current reset status prior to rebooting the platform.  This
adds the bit missing from 04fef228 ("[ARM] pxa: introduce
reset_status and clear_reset_status for driver's usage").

Fixes: 04fef228 ("[ARM] pxa: introduce reset_status and clear_reset_status for driver's usage")
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 4e12317c
......@@ -31,6 +31,7 @@
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <mach/reset.h>
#include "generic.h"
......@@ -91,6 +92,8 @@ static void sa1100_power_off(void)
void sa11x0_restart(enum reboot_mode mode, const char *cmd)
{
clear_reset_status(RESET_STATUS_ALL);
if (mode == REBOOT_SOFT) {
/* Jump into ROM at address 0 */
soft_restart(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment