Skip to contentSkip to conversation

sh: improve sh7785lcr power off code

PATCH Applied Magnus Damm 2 participants 2 messages Mar 11, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: improve sh7785lcr power off code

From: Magnus Damm <[email protected]>

Improve the sh7785lcr power off implementation to never return. It takes some time before the board is actually powered off, just hang after asking the harware to power down.

This removes the serial port garbage printout.

---

 arch/sh/boards/board-sh7785lcr.c |    3 +++
 1 file changed, 3 insertions(+)
arch/sh/boards/board-sh7785lcr.c +3 -0
@@ -284,6 +284,9 @@ static void sh7785lcr_power_off(void)
 	}
 	*p = 0x01;
 	iounmap(p);
+	set_bl_bit();
+	while (1)
+		cpu_relax();
 }
 
 /* Initialize the board */
Applied
#1 lore raw
Quoted 8 lines · Magnus Damm

Improve the sh7785lcr power off implementation to never return. It takes some time before the board is actually powered off, just hang after asking the harware to power down.

This removes the serial port garbage printout.

Applied.