Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Manuel Lauss and committed by
Ralf Baechle
092ea466 3c09bae4

+3
+3
arch/mips/alchemy/devboards/platform.c
··· 11 11 #include <linux/pm.h> 12 12 13 13 #include <asm/bootinfo.h> 14 + #include <asm/idle.h> 14 15 #include <asm/reboot.h> 15 16 #include <asm/mach-au1x00/au1000.h> 16 17 #include <asm/mach-db1x00/bcsr.h> ··· 54 53 { 55 54 bcsr_write(BCSR_RESETS, 0); 56 55 bcsr_write(BCSR_SYSTEM, BCSR_SYSTEM_PWROFF | BCSR_SYSTEM_RESET); 56 + while (1) /* sit and spin */ 57 + cpu_wait(); 57 58 } 58 59 59 60 static void db1x_reset(char *c)