diff mbox

sh: improve sh7785lcr power off code

Message ID 20090311081426.2031.70713.sendpatchset@rx1.opensource.se (mailing list archive)
State Accepted
Headers show

Commit Message

Magnus Damm March 11, 2009, 8:14 a.m. UTC
From: Magnus Damm <damm@igel.co.jp>

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.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 arch/sh/boards/board-sh7785lcr.c |    3 +++
 1 file changed, 3 insertions(+)

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Paul Mundt March 11, 2009, 8:29 a.m. UTC | #1
On Wed, Mar 11, 2009 at 05:14:26PM +0900, Magnus Damm wrote:
> 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.
> 
> Signed-off-by: Magnus Damm <damm@igel.co.jp>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- 0001/arch/sh/boards/board-sh7785lcr.c
+++ work/arch/sh/boards/board-sh7785lcr.c	2009-03-11 15:15:52.000000000 +0900
@@ -284,6 +284,9 @@  static void sh7785lcr_power_off(void)
 	}
 	*p = 0x01;
 	iounmap(p);
+	set_bl_bit();
+	while (1)
+		cpu_relax();
 }
 
 /* Initialize the board */