From patchwork Wed Nov 20 03:54:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3207371 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 703E19F499 for ; Wed, 20 Nov 2013 03:54:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 90D33206F8 for ; Wed, 20 Nov 2013 03:54:29 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 87A1F206F4 for ; Wed, 20 Nov 2013 03:54:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Viyrt-0000qt-EY; Wed, 20 Nov 2013 03:54:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Viyrr-0002S1-0X; Wed, 20 Nov 2013 03:54:19 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Viyrn-0002Rh-W8 for linux-arm-kernel@lists.infradead.org; Wed, 20 Nov 2013 03:54:16 +0000 Received: by mail-pa0-f50.google.com with SMTP id kp14so7763967pab.37 for ; Tue, 19 Nov 2013 19:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=R2HfIjB/NUc7/sNwMSS783NZ9KHMyBCPcTJK2qwijeM=; b=C8SCf1eXEktsTDieNFzf8g2+qWMTByomF1XTlkYv6dyvvPQriouUUVJ/JiPMnfOv4y 6hPBquVrJAQNA9k70jSabGZbFDQ4QzIwrOc4U47xnZh7vFdOkuO9jAz8kF7tmauoL2a9 +dTxF6CQBodXhk8a+j2jUuud7ljZNEGHy5BY+cPq0B+gy78i7PPqegZAKFTVMZlySiw8 7ol9dK5M5lAnfYwh26E3E8uKGjyR2PFzUfiRgOl8V2RcxRjP6w0Cbw2Ql4MGAus6fjRX xhTSFvRyb5SPjebr0DUHZyz3oW7rTotvmgDjd7BjRubpMorMWJwjia22+Elhfd+Vx7Fr vHWA== X-Received: by 10.66.154.197 with SMTP id vq5mr5062409pab.155.1384919632852; Tue, 19 Nov 2013 19:53:52 -0800 (PST) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id rz6sm26333315pab.22.2013.11.19.19.53.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2013 19:53:51 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 20 Nov 2013 12:54:34 +0900 Message-Id: <20131120035434.30035.69827.sendpatchset@w520> Subject: [PATCH] ARM: shmobile: Use ->init_late() on Koelsch X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131119_225416_125202_79FA4604 X-CRM114-Status: GOOD ( 10.08 ) X-Spam-Score: -2.0 (--) Cc: horms@verge.net.au, Magnus Damm , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Hook in shmobile_init_late() on Koelsch. This enables some PM related things like CPUIdle and Suspend-to-RAM. With this patch applied it is possible to use Suspend-to-RAM: # echo enabled > /sys/class/tty/ttySC6/power/wakeup # echo mem > /sys/power/state (wake by sending a character on the serial console) Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/board-koelsch-reference.c | 2 ++ arch/arm/mach-shmobile/board-koelsch.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) --- 0001/arch/arm/mach-shmobile/board-koelsch-reference.c +++ work/arch/arm/mach-shmobile/board-koelsch-reference.c 2013-11-20 12:26:30.000000000 +0900 @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -47,5 +48,6 @@ DT_MACHINE_START(KOELSCH_DT, "koelsch") .init_early = r8a7791_init_early, .init_time = rcar_gen2_timer_init, .init_machine = koelsch_add_standard_devices, + .init_late = shmobile_init_late, .dt_compat = koelsch_boards_compat_dt, MACHINE_END --- 0001/arch/arm/mach-shmobile/board-koelsch.c +++ work/arch/arm/mach-shmobile/board-koelsch.c 2013-11-20 12:26:24.000000000 +0900 @@ -92,7 +92,8 @@ static const char * const koelsch_boards DT_MACHINE_START(KOELSCH_DT, "koelsch") .smp = smp_ops(r8a7791_smp_ops), .init_early = r8a7791_init_early, - .init_machine = koelsch_add_standard_devices, .init_time = rcar_gen2_timer_init, + .init_machine = koelsch_add_standard_devices, + .init_late = shmobile_init_late, .dt_compat = koelsch_boards_compat_dt, MACHINE_END