From patchwork Wed Nov 20 00:02:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3204551 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 C39C79F3A0 for ; Wed, 20 Nov 2013 00:02:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 08D07206F0 for ; Wed, 20 Nov 2013 00:02:39 +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 1F0E1206EB for ; Wed, 20 Nov 2013 00:02:38 +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 1VivFN-0005cp-O3; Wed, 20 Nov 2013 00:02:23 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VivFL-0006wJ-Bx; Wed, 20 Nov 2013 00:02:19 +0000 Received: from mail-pd0-f169.google.com ([209.85.192.169]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VivFH-0006vK-Px for linux-arm-kernel@lists.infradead.org; Wed, 20 Nov 2013 00:02:16 +0000 Received: by mail-pd0-f169.google.com with SMTP id v10so3244362pde.14 for ; Tue, 19 Nov 2013 16:01:49 -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=f5NJNV1DEvZol6i8r0I2/IdxiTtXsPKlSRbZ605a5Y8=; b=eHhYSONZyVkwZ93NVpHCbizZJ1uTeBosVpGrjfvzQoOUl3U3Pi1yEzXlEC7xxqt+QI dPnVqyCdtggHX//PzBk6U1SU3BUiMpSAmpot/HFWsvTXZGPpoE4i3WPIp2XABeAsW0sJ Tn9h82Vr97Y/RUNsFVLO1zOyYjJRSaPdTxLKAi0bUMXPfBHZIJTSzgg00mbHxRLe2suT oXVpUlUgc0Fg0HkFB/Wo2W9q3j6MMvYgjcrYJbN83KvdEq1lNumfwe3aDLrjAYltcRg8 Jsi7vXksPIfBvHnRtktVtawx6aojrBPSaXaa29SxbL2+5I0hfsBS4dyicU9VqNgKVg3d 0LYQ== X-Received: by 10.66.219.233 with SMTP id pr9mr28820168pac.45.1384905709563; Tue, 19 Nov 2013 16:01:49 -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 vh3sm53244pbc.8.2013.11.19.16.01.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2013 16:01:48 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 20 Nov 2013 09:02:31 +0900 Message-Id: <20131120000231.27016.39549.sendpatchset@w520> Subject: [PATCH v2] ARM: shmobile: Use ->init_late() on Lager X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131119_190215_911619_B5B783E1 X-CRM114-Status: UNSURE ( 9.64 ) 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.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 Lager V2. 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 --- Changes since V1: - added missing include to DT reference code Written on top of renesas.git renesas-devel-v3.12-20131119 arch/arm/mach-shmobile/board-lager-reference.c | 2 ++ arch/arm/mach-shmobile/board-lager.c | 1 + 2 files changed, 3 insertions(+) --- 0001/arch/arm/mach-shmobile/board-lager-reference.c +++ work/arch/arm/mach-shmobile/board-lager-reference.c 2013-11-20 08:14:45.000000000 +0900 @@ -20,6 +20,7 @@ #include #include +#include #include #include #include @@ -41,5 +42,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-20 08:14:34.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