From patchwork Wed Mar 11 08:14:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11076 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2B8GuZV006795 for ; Wed, 11 Mar 2009 08:16:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751013AbZCKIQ4 (ORCPT ); Wed, 11 Mar 2009 04:16:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751223AbZCKIQ4 (ORCPT ); Wed, 11 Mar 2009 04:16:56 -0400 Received: from wa-out-1112.google.com ([209.85.146.179]:19764 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751013AbZCKIQz (ORCPT ); Wed, 11 Mar 2009 04:16:55 -0400 Received: by wa-out-1112.google.com with SMTP id v33so1533791wah.21 for ; Wed, 11 Mar 2009 01:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=Ckk9G4j/5FnJNpy3yUtvPywn8ttssEJPIzwPHG+u8bA=; b=cvQCb6EMxIXtApe4eu9WE81UAICDHITwMfKDQlUz3li3MVc1CLEGhaTVz+bWed/+eq PsbMy8Bi0Ski6U7dCEY23jEKn+SoJ8opbp463FTd9YVkeMllXmO0IgjF2vjamyCrK3Up g32QZXZlDOxIOkNZjCk+5igQfwAulpjVFbwfw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=p9BlyUnHm7Gtiw7Jm4/u7junqRIEdOXJSQwKd8MfwCxwdzcyD7P5BQUBrzF4flFnDi M4zmLISql8UMnGqExlqTsu/oMQVo4jNRK5M1vPMl++jn+GZP48VjsRVw6VNDNBoUs4wV l7mSxjJLQnoo0X18latkZLO1VABc8AnvRoHV4= Received: by 10.114.194.1 with SMTP id r1mr4958216waf.149.1236759413611; Wed, 11 Mar 2009 01:16:53 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id l28sm5993592waf.65.2009.03.11.01.16.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Mar 2009 01:16:52 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Wed, 11 Mar 2009 17:14:26 +0900 Message-Id: <20090311081426.2031.70713.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: improve sh7785lcr power off code Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: 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. Signed-off-by: Magnus Damm --- 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 --- 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 */