Message ID | 20240128204740.2355092-2-aren@peacevolution.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-41950-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp220465dyb; Sun, 28 Jan 2024 12:56:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMBVUwT7gyvHK/9+UJZlDCa2Ro40UJH6ZhsKOtNVSp0FI6X9fUTESuAkGYB0c5R7hthQNs X-Received: by 2002:aa7:d410:0:b0:55e:fa19:9c0c with SMTP id z16-20020aa7d410000000b0055efa199c0cmr710252edq.9.1706475393896; Sun, 28 Jan 2024 12:56:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706475393; cv=pass; d=google.com; s=arc-20160816; b=f2FQAZfSE9bQRY+XVSBwS7I0AiGOBXANqP3UTvZ2CwqHoyLn0nuWo48fV94K1LHBNE b9M14Thgjm7wyPkErKiaDI3sNSNaYmaQCuUk4eHY6GHRIOKTTjYzcF77sbkQlHsGOhuF mGvREy8IZV6dURdcBrFY8CcGknc1hm+A1x+0SrJJoTlq+rC8tPz/4Wm250jFcpwA+ROW bdlW07PrXcZ5eK9z2RUomx64RT8533EtseFHDKkJ86zXufoWFNpV0ZbKX7gThDIIF5Gb bKNww9C2778WlDb6gen5P0ICqgYEqZdDE2Er2Iu6QUKGtt3DkDvhiy++XeOOlfO6D4f/ OsDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=dkim-signature:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=7f8Pqy4UhROYbk09gyqrlaBXv9qrJ3dn1Gj623LQxSg=; fh=vogt2Ndq24/cMfcnX2+D+YjJWcEOQng4OQGQG6hZSjo=; b=Xpm/7wOoxEzMABJHcQqLMcbG3XDAnxu99/o6nvRV0IV5Z2sfSrYy8DtPHT39XtxgNm tYkiupmP71pUcK5x1xztSTNxWbiCPO7NvS8PRTHwtuuWgLmyAJThOxU0VmCWWV97U16C mLe9GiVIDWF8I6pa9EAZakSdjkhmwjFdHHMstUu30maYoOHKRg0/u0IVhEuRInz8WFHA tm+aC5dAuWY0fkrnJNT2E1cRXinMkmupOMi0xHVTX4J36iEjllFdTTbPiAMFN0c3M+pZ 1SgldIn26iQKsD01TrfWvEJIhUeTwEe+zhb3Ww0GYfT/E/tWhLr+WZFNS1iq7nYx7c5E spsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=EJOMD3Ho; arc=pass (i=1 spf=pass spfdomain=peacevolution.org dkim=pass dkdomain=peacevolution.org dmarc=pass fromdomain=peacevolution.org); spf=pass (google.com: domain of linux-kernel+bounces-41950-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41950-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h26-20020aa7de1a000000b0055ee91dd347si757643edv.497.2024.01.28.12.56.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 12:56:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41950-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=EJOMD3Ho; arc=pass (i=1 spf=pass spfdomain=peacevolution.org dkim=pass dkdomain=peacevolution.org dmarc=pass fromdomain=peacevolution.org); spf=pass (google.com: domain of linux-kernel+bounces-41950-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41950-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2FFC31F22C4A for <ouuuleilei@gmail.com>; Sun, 28 Jan 2024 20:49:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC4CA41A91; Sun, 28 Jan 2024 20:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b="EJOMD3Ho" Received: from a.peacevolution.org (a.peacevolution.org [206.189.193.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F9812EB1C; Sun, 28 Jan 2024 20:48:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=206.189.193.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706474928; cv=none; b=Vocekce3nilwPd4g0cROpcIBK4rE501ybCrroSe5oTFlB8kVIqLXDxQgHZ4hqMCGFPgJgBAmaqcQffbyfTVjfbViYOyQ4QO5VK0iiR6h32L65eXH8nHw52eIk6Dhbp80F82xs95i0lf3obu1+vV5R9m4HXyRt54btC3XCgVQ/EE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706474928; c=relaxed/simple; bh=sC4x0F7ocxCOiTa61zP6CfELEuBIay9GFpbnCJDfh/Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MZCWfZzua3aHBrIEJxTGXQMg1h0R0S9jba7qbHwP19ClyGpchUmpDStJ5h8Hzw6EdcNro1j6+jnatjPPSUOWVYbMbzqG0K0Sp2qHP+6dOkXoFMbkrKaWO6iFVqny97iRveaOUjydpuXSdOdsvV2Ffa7xfUTXU/EWky7FGumzLc8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=peacevolution.org; spf=pass smtp.mailfrom=peacevolution.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b=EJOMD3Ho; arc=none smtp.client-ip=206.189.193.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=peacevolution.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=peacevolution.org Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by a.peacevolution.org (Postfix) with ESMTPA id C738C4649A; Sun, 28 Jan 2024 20:48:39 +0000 (UTC) From: Aren Moynihan <aren@peacevolution.org> To: linux-kernel@vger.kernel.org Cc: Miles Alan <m@milesalan.com>, Ondrej Jirman <megi@xff.cz>, Aren Moynihan <aren@peacevolution.org>, Chen-Yu Tsai <wens@csie.org>, Conor Dooley <conor+dt@kernel.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org>, Samuel Holland <samuel@sholland.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 2/4] arm64: dts: sun50i-a64-pinephone: Retain leds state in suspend Date: Sun, 28 Jan 2024 15:45:08 -0500 Message-ID: <20240128204740.2355092-2-aren@peacevolution.org> In-Reply-To: <20240128204740.2355092-1-aren@peacevolution.org> References: <20240128204740.2355092-1-aren@peacevolution.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: auth=pass smtp.auth=aren@peacevolution.org smtp.mailfrom=aren@peacevolution.org X-Spam-Level: ** X-Spamd-Bar: ++ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peacevolution.org; s=dkim; t=1706474920; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding:in-reply-to:references; bh=7f8Pqy4UhROYbk09gyqrlaBXv9qrJ3dn1Gj623LQxSg=; b=EJOMD3HotjeLQcDFlPSxcFnoN3nW4WypH8d+tyrewLLGqsU46t6K1yLdx3qDx2od6hNEj3 BMaTuqsa8o9W0bD3JuUYBTNax2AflA0B+a69MUnW6kIL9uP8fgDXUz/lcW2PKB1ak5I6ie KujAkq7t9VoaDzzJ8fkALkziEg4/9Ss= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789369142252680137 X-GMAIL-MSGID: 1789369142252680137 |
Series |
[1/4] leds: rgb: leds-group-multicolor: allow leds to stay on in suspend
|
|
Commit Message
Aren
Jan. 28, 2024, 8:45 p.m. UTC
From: Miles Alan <m@milesalan.com> Allows user to set a led before entering suspend to know that the phone is still on (or could be used for notifications etc.) Signed-off-by: Miles Alan <m@milesalan.com> Signed-off-by: Ondrej Jirman <megi@xff.cz> Signed-off-by: Aren Moynihan <aren@peacevolution.org> --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 +++ 1 file changed, 3 insertions(+)
Comments
Dne nedelja, 28. januar 2024 ob 21:45:08 CET je Aren Moynihan napisal(a): > From: Miles Alan <m@milesalan.com> > > Allows user to set a led before entering suspend to know that > the phone is still on (or could be used for notifications etc.) > > Signed-off-by: Miles Alan <m@milesalan.com> > Signed-off-by: Ondrej Jirman <megi@xff.cz> > Signed-off-by: Aren Moynihan <aren@peacevolution.org> Where is patch 1 and possibly cover letter? Please resend with all patches. However, this particular patch is: Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Best regards, Jernej > --- > > arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > index 87847116ab6d..ad2476ee01e4 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > @@ -43,18 +43,21 @@ led-0 { > function = LED_FUNCTION_INDICATOR; > color = <LED_COLOR_ID_BLUE>; > gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ > + retain-state-suspended; > }; > > led-1 { > function = LED_FUNCTION_INDICATOR; > color = <LED_COLOR_ID_GREEN>; > gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ > + retain-state-suspended; > }; > > led-2 { > function = LED_FUNCTION_INDICATOR; > color = <LED_COLOR_ID_RED>; > gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ > + retain-state-suspended; > }; > }; > >
On Tue, Jan 30, 2024 at 08:06:24PM +0100, Jernej Škrabec wrote: > Dne nedelja, 28. januar 2024 ob 21:45:08 CET je Aren Moynihan napisal(a): > > From: Miles Alan <m@milesalan.com> > > > > Allows user to set a led before entering suspend to know that > > the phone is still on (or could be used for notifications etc.) > > > > Signed-off-by: Miles Alan <m@milesalan.com> > > Signed-off-by: Ondrej Jirman <megi@xff.cz> > > Signed-off-by: Aren Moynihan <aren@peacevolution.org> > > Where is patch 1 and possibly cover letter? Please resend with all patches. Oops, sorry about that, I'm still getting used to get_maintainer.pl. I'll resend this properly when I have time this weekend, until then the patch you missed is available at https://lore.kernel.org/lkml/20240128204740.2355092-1-aren@peacevolution.org/ > However, this particular patch is: > Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Thanks - Aren > Best regards, > Jernej > > > --- > > > > arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > index 87847116ab6d..ad2476ee01e4 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > @@ -43,18 +43,21 @@ led-0 { > > function = LED_FUNCTION_INDICATOR; > > color = <LED_COLOR_ID_BLUE>; > > gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ > > + retain-state-suspended; > > }; > > > > led-1 { > > function = LED_FUNCTION_INDICATOR; > > color = <LED_COLOR_ID_GREEN>; > > gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ > > + retain-state-suspended; > > }; > > > > led-2 { > > function = LED_FUNCTION_INDICATOR; > > color = <LED_COLOR_ID_RED>; > > gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ > > + retain-state-suspended; > > }; > > }; > > > > > > > >
Dne četrtek, 01. februar 2024 ob 02:36:46 CET je Aren napisal(a): > On Tue, Jan 30, 2024 at 08:06:24PM +0100, Jernej Škrabec wrote: > > Dne nedelja, 28. januar 2024 ob 21:45:08 CET je Aren Moynihan napisal(a): > > > From: Miles Alan <m@milesalan.com> > > > > > > Allows user to set a led before entering suspend to know that > > > the phone is still on (or could be used for notifications etc.) > > > > > > Signed-off-by: Miles Alan <m@milesalan.com> > > > Signed-off-by: Ondrej Jirman <megi@xff.cz> > > > Signed-off-by: Aren Moynihan <aren@peacevolution.org> > > > > Where is patch 1 and possibly cover letter? Please resend with all patches. > > Oops, sorry about that, I'm still getting used to get_maintainer.pl. > I'll resend this properly when I have time this weekend, until then the > patch you missed is available at > https://lore.kernel.org/lkml/20240128204740.2355092-1-aren@peacevolution.org/ When sending patch series it's customary to send all patches to all maintainers and mailing lists (to have a context). In case of large patch series, you can send only selected patches to each maintainer and mailing lists, but then send cover letter to all involved and explain general idea behind the series. Best regards, Jernej > > > However, this particular patch is: > > Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> > > Thanks > - Aren > > > Best regards, > > Jernej > > > > > --- > > > > > > arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > > index 87847116ab6d..ad2476ee01e4 100644 > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > > @@ -43,18 +43,21 @@ led-0 { > > > function = LED_FUNCTION_INDICATOR; > > > color = <LED_COLOR_ID_BLUE>; > > > gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ > > > + retain-state-suspended; > > > }; > > > > > > led-1 { > > > function = LED_FUNCTION_INDICATOR; > > > color = <LED_COLOR_ID_GREEN>; > > > gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ > > > + retain-state-suspended; > > > }; > > > > > > led-2 { > > > function = LED_FUNCTION_INDICATOR; > > > color = <LED_COLOR_ID_RED>; > > > gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ > > > + retain-state-suspended; > > > }; > > > }; > > > > > > > > > > > > > > >
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 87847116ab6d..ad2476ee01e4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -43,18 +43,21 @@ led-0 { function = LED_FUNCTION_INDICATOR; color = <LED_COLOR_ID_BLUE>; gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ + retain-state-suspended; }; led-1 { function = LED_FUNCTION_INDICATOR; color = <LED_COLOR_ID_GREEN>; gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ + retain-state-suspended; }; led-2 { function = LED_FUNCTION_INDICATOR; color = <LED_COLOR_ID_RED>; gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ + retain-state-suspended; }; };