diff options
author | Manuel Lauss <manuel.lauss@gmail.com> | 2014-08-20 15:36:30 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-09-22 07:35:46 -0400 |
commit | 092ea4660808cd441ccf3d415b80665dbe8712f4 (patch) | |
tree | e99c9369d07dc195708b5ca4bce36c3eac956027 /arch/mips | |
parent | 3c09bae43ba92a07a6a7b7d42360deb32d289cc0 (diff) |
MIPS: Alchemy: devboards: sit and spin after poweroff
On boards which don't support poweroff, systemd complains about this fact.
In case poweroff fails, just sit and spin in the wait loop.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Cc: Manuel Lauss <manuel.lauss@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/7558/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/alchemy/devboards/platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/alchemy/devboards/platform.c b/arch/mips/alchemy/devboards/platform.c index 8df86eb94972..be139a0198b0 100644 --- a/arch/mips/alchemy/devboards/platform.c +++ b/arch/mips/alchemy/devboards/platform.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/pm.h> | 11 | #include <linux/pm.h> |
12 | 12 | ||
13 | #include <asm/bootinfo.h> | 13 | #include <asm/bootinfo.h> |
14 | #include <asm/idle.h> | ||
14 | #include <asm/reboot.h> | 15 | #include <asm/reboot.h> |
15 | #include <asm/mach-au1x00/au1000.h> | 16 | #include <asm/mach-au1x00/au1000.h> |
16 | #include <asm/mach-db1x00/bcsr.h> | 17 | #include <asm/mach-db1x00/bcsr.h> |
@@ -53,6 +54,8 @@ static void db1x_power_off(void) | |||
53 | { | 54 | { |
54 | bcsr_write(BCSR_RESETS, 0); | 55 | bcsr_write(BCSR_RESETS, 0); |
55 | bcsr_write(BCSR_SYSTEM, BCSR_SYSTEM_PWROFF | BCSR_SYSTEM_RESET); | 56 | bcsr_write(BCSR_SYSTEM, BCSR_SYSTEM_PWROFF | BCSR_SYSTEM_RESET); |
57 | while (1) /* sit and spin */ | ||
58 | cpu_wait(); | ||
56 | } | 59 | } |
57 | 60 | ||
58 | static void db1x_reset(char *c) | 61 | static void db1x_reset(char *c) |