Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1704708imj; Thu, 14 Feb 2019 10:36:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IZPLKhcZMH4BcCxAxasaWIaTlOtni7NFFGsSIKDXRp8oH3asRaV+TDlQhH3AIpwpMnnJM8a X-Received: by 2002:a63:ce16:: with SMTP id y22mr1230291pgf.296.1550169361721; Thu, 14 Feb 2019 10:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550169361; cv=none; d=google.com; s=arc-20160816; b=r99Y/gOtprvhJQ5lT0lpOXJfSYRMOwLPsJ8iL981AASQGmtsOoyXUaWZxUR2He78rR n60fM9DRoG4YZAdzJv6ilqWvGRYWACayIVrCk3NdwwvB/E7C9hjQFbIZNCTtQ9vbxIeo RzIRGLd9iMhoZxjFthn01SlxUd/nSwSRn6k3s4+/NDfP2tkMqHPtmbIzPUGsnA3q3u+5 BFSfW92FI2rLXy391hcL6eKoBvybAoI45UpB9TWT+x/r26+eFQgmYYdw0Ek7fOLOHg2u IpEh5JRaFPCtyHs5rGUES1gH0XQlro2OHXAyRe0XnI1ToUavl8n2ieomdlafKtE+QZQW Bj1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GLl67OWhTaJJMHYQgVb2ikQav++aRrYVstWT/rQrGbA=; b=GVKS4AkCrIamDa5CoW9PPUO/2EJCB+0qIPye+wN9S+DF1QIo27WE7VX2yu0MVKgF6F MytHtw1gT9VNsJ76VcvUDLxZqvIpGOUAMXHWOUqu95ak9KAdUDRTa6NYtaRB1sEMheQ2 59KMcX1VbZf5DLq6ymxQnu62an5AgF+OXmzDsKD7RiBE6uDQMUrxMlS/nibOyKJLdsJZ x7LoLOoQkkCXOpXik+9FGPz24n8aILRFh2/+M05bhkCRR7hRUxwjxhbVCnig8qLNPp7F znON0yqDjD7Kyn1+lqYBzo6trA/YKYhSMKXOwpwvAfOaYKfuCgbNEZV6frMhv06rCj6q hHhQ== 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 ct12si133017plb.422.2019.02.14.10.35.45; Thu, 14 Feb 2019 10:36:01 -0800 (PST) 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 S2389112AbfBNL3B (ORCPT + 99 others); Thu, 14 Feb 2019 06:29:01 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:40893 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726940AbfBNL3B (ORCPT ); Thu, 14 Feb 2019 06:29:01 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 4FAD180331; Thu, 14 Feb 2019 12:28:52 +0100 (CET) Date: Thu, 14 Feb 2019 12:28:58 +0100 From: Pavel Machek To: Hans de Goede Cc: Yauhen Kharuzhy , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v2 1/2] leds: Add Intel Cherry Trail Whiskey Cove PMIC LEDs Message-ID: <20190214112858.GG6132@amd> References: <20190212205901.13037-1-jekhor@gmail.com> <20190212205901.13037-2-jekhor@gmail.com> <1df39a63-533f-bb68-a056-a0241f148be9@redhat.com> <20190213230731.GA8557@amd> <42078a81-e32e-81b7-528f-d1adb60d31c3@redhat.com> <20190213233806.GA11867@amd> <562e2acd-a60a-2aea-4050-6d9414d23a4e@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gvF4niNJ+uBMJnEh" Content-Disposition: inline In-Reply-To: <562e2acd-a60a-2aea-4050-6d9414d23a4e@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gvF4niNJ+uBMJnEh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >>Basically the charge led has 3 states: > >> > >>1) Off > >>2) On > >>3) On when charging > >> > >>And then when on it has 4 patterns: > >> > >>1) Permanently off (so still not really on) > >>2) Permanently on > >>3) Blinking > >>4) Breathing > > > >Ok, so you don't really need to support _both_ off methods. > > > >Still sounds like a normal LED, with special "yoga-charging" and > >"yoga-breathing" triggers. (All the normal triggers should still work, > >too.) >=20 > Except that when in yoga-charging mode, the user should > still be able to select if the LED is simply on when charging, > blinking when charging, or breathing when charging. BTW... all this should really go in the comment to the top of the file. It is non-trivial. > >>The problem is that any changes made are permanent, they > >>survice reboots and the default is Breathing, so we need > >>a way to restore that which does not involve removing > >>the internal battery of these devices. As should this.... as it is quite unusual. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --gvF4niNJ+uBMJnEh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlxlUPoACgkQMOfwapXb+vKDeQCgj8YoCeC9y3msoIYfCsFyGPYh sdMAnAtIhoY/uZb8icAAoaBhWoEem8rQ =Aczs -----END PGP SIGNATURE----- --gvF4niNJ+uBMJnEh--