From patchwork Wed Nov 13 22:34:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3179911 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 0C2F69F39E for ; Wed, 13 Nov 2013 22:34:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26F0220124 for ; Wed, 13 Nov 2013 22:34:13 +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 35F3D2093A for ; Wed, 13 Nov 2013 22:34:12 +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 1Vgj0X-0000L0-28; Wed, 13 Nov 2013 22:33:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vgj0U-00073m-M9; Wed, 13 Nov 2013 22:33:54 +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 1Vgj0R-000739-2E for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2013 22:33:51 +0000 Received: by mail-pa0-f50.google.com with SMTP id hz1so1110219pad.37 for ; Wed, 13 Nov 2013 14:33:27 -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=neBjDkF/lzelql8RVNQ0xJbyyTlyPaZ2cli/ChuKaoY=; b=vFqklgspJ4/TSncDUFa3yFvOM/OjP+iwrxZuEx4Y5HtJxhU5CA5fs8OyyUlrBKL7cZ Fs3c4Hi5XtTU0u44XrKfiA1KGXKKcby4NbjoYH5tX8cizYYO0vFco4JtXLCd7IcWvcsh 7KK25wooFS/NUJF9z+xlKhCr+OFrx1/G/ORsNehfJ9m6LCVYYPc25A0GhN+pvH6/xVQP GN3buBtHZsbRKJ+qLknyXbzzA+2OK8+kLQRNu7H71UXTmHo+qBGuBuwFk2/7WN/fC80M 0HyvoDHKyfa5tjuIeLrbd6TAphcAHt9vrcwNUe+Grq0xZjRYsZ0vzJ2jeqLjeX7duF5z i/mA== X-Received: by 10.69.29.107 with SMTP id jv11mr16560346pbd.147.1384382006935; Wed, 13 Nov 2013 14:33:26 -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 bp5sm46792074pbb.18.2013.11.13.14.33.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Nov 2013 14:33:25 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 14 Nov 2013 07:34:06 +0900 Message-Id: <20131113223406.20634.52693.sendpatchset@w520> Subject: [PATCH] ARM: shmobile: Use ->init_late() on Lager X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131113_173351_214507_91D3DA06 X-CRM114-Status: UNSURE ( 7.96 ) X-CRM114-Notice: Please train this message. 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.1 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=ham 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 Lager. 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-lager-reference.c | 1 + arch/arm/mach-shmobile/board-lager.c | 1 + 2 files changed, 2 insertions(+) --- 0001/arch/arm/mach-shmobile/board-lager-reference.c +++ work/arch/arm/mach-shmobile/board-lager-reference.c 2013-11-13 16:55:46.000000000 +0900 @@ -41,5 +41,6 @@ DT_MACHINE_START(LAGER_DT, "lager") .init_early = r8a7790_init_early, .init_time = rcar_gen2_timer_init, .init_machine = lager_add_standard_devices, + .init_late = shmobile_init_late, .dt_compat = lager_boards_compat_dt, MACHINE_END --- 0001/arch/arm/mach-shmobile/board-lager.c +++ work/arch/arm/mach-shmobile/board-lager.c 2013-11-13 16:55:38.000000000 +0900 @@ -259,5 +259,6 @@ DT_MACHINE_START(LAGER_DT, "lager") .init_early = r8a7790_init_early, .init_time = rcar_gen2_timer_init, .init_machine = lager_init, + .init_late = shmobile_init_late, .dt_compat = lager_boards_compat_dt, MACHINE_END