Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1032298imm; Fri, 22 Jun 2018 09:11:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKMHeDhUTaoIns6wJ56Wquyl6O87Yfa0QYfzC/KolrrywdxEOGCDYQGwVY3Q934mXeYmh0M X-Received: by 2002:a62:fb05:: with SMTP id x5-v6mr2441786pfm.210.1529683880562; Fri, 22 Jun 2018 09:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529683880; cv=none; d=google.com; s=arc-20160816; b=LexFI0kSpISnWlJE7j2cIkc9qlFyrozpy/b8OFrsA2R6luavcnebTZCW8YMLfLYAQm qMEgiPQ4LtnXDrsi30TBK1MXPTAeBY6N8fgLRqbBI00ClAF7gx6KjHDzSUGMIbDQ0Hdz 5yFddOkl7VKRQ1YT2YXQfMvENSEXzldPU5SqoXjbg168w5qigDCk7lwcz9Sbs/GRBpwG +LWX1TAeTlMatDqCp+d+wJ9rH8/YH4lh0N8ilOLMyk4ma2nAmdDYesKf7wnG6rPWO8s1 J6dMqaKSc9qyKHA7YQEBybOEisOXLUy/sL49ALipmm8W8gZOkeVthk23EMYPRqYfvXIR GFBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=sBewn6wrfXVUP++3iRfKSmRlDzYoWixAs3z3jffX7aI=; b=i4VHwx00mzMcjAPCMHIAHTxDI1l2lSMwHl3Pmx6AFmVlNl/XW84fMonptoHDElz2iR vs5rOJAWxIXFaIryyXCvlezSlq6xNAa+idbpuU+F0mn47By+5heKSrZmooVgGbURbVfn zv3plX1BQL0fUH26T/VbCtpKeZuv/WWpJMzN/utXC1FD48gDoDOpVzfxf9EHdFmDF4um mRUPDKLbaRsLpd6YWjA8aOeIVS8kDe33a+S9BRl5/VrPvkrnQZzxzhgEkGyUq15l/WzC 3k342mfbwQzKVURuvI5B94CdiN0JQHnm2lrJ7Y8JilSCAk4GyY+q6JZvq0XSl8XAb8+b jPRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21-v6si6402668pgn.262.2018.06.22.09.11.06; Fri, 22 Jun 2018 09:11:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934345AbeFVQJ4 (ORCPT + 99 others); Fri, 22 Jun 2018 12:09:56 -0400 Received: from hermes.aosc.io ([199.195.250.187]:34723 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934045AbeFVQIQ (ORCPT ); Fri, 22 Jun 2018 12:08:16 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 099A9630E0; Fri, 22 Jun 2018 16:07:47 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH 2/2] arm64: allwinner: a64: allow laptops to wake up from lid Date: Sat, 23 Jun 2018 00:06:31 +0800 Message-Id: <20180622160631.8578-2-icenowy@aosc.io> In-Reply-To: <20180622160631.8578-1-icenowy@aosc.io> References: <20180622160631.8578-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently all ARM kernels will have s2idle enabled if CONFIG_SUSPEND is present. In this case if the lid is closed, systemd-logind will enter s2idle mode by default; however there's no possible wakeup source defined, so the system will enter a forever idle. Add the lid itself as a wakeup source, thus the system can wakeup when the lid is opened. Signed-off-by: Icenowy Zheng --- This patch is not related with the first patch, and have no dependency. arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 1 + arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 58253d6f9be1..e6e5bf11b759 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -49,6 +49,7 @@ linux,input-type = ; linux,code = ; linux,can-disable; + wakeup-source; }; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts index 02fecc42440c..33f78e745815 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -38,6 +38,7 @@ gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */ linux,input-type = ; linux,code = ; + wakeup-source; }; }; -- 2.17.1