Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1584640lkv; Wed, 19 May 2021 13:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCP59BgjjLxyqAbGMUPj4m0jN1t/ESiSt43/d47+suSY5Yn9xM5rzLC7zcMhyC+BJlUIiI X-Received: by 2002:a17:906:cc9:: with SMTP id l9mr958657ejh.454.1621455775928; Wed, 19 May 2021 13:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621455775; cv=none; d=google.com; s=arc-20160816; b=Q92ttkFIfOJxzejMPeVylMpqOOI2v8/Kt9e1eTrD9GRuYpLadLtQfNkNz5p91t9Wen XKwJnwReAbiEi9gefyt4cuMkjrRNgjUJc+4qD1rHpOeQTrTtd4Jc2aQYW36CI5M6J/0c w8p79YKX0FVg9K8TIljpfiSrcg/A5zYqzcTVQtr6svkEfCTdE31+0nS2VYcrQ43vkuiI 4EuIXNdfT59YZt/GRDRwybZV/Igwl1NsKco38QCz8vVneo3i5izob5GcY0JV8wWkhPyA NoCP0aVuIOcKACyT3QlwmDRw4mffNnFxI2zbVOyUUEPxaFiF8kKENKh6NhTnZdhz+PcO uiXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=lTabnZ0R5Gcaqer7wyNZFCC9w2P2fAjzyVD5fiPUGxE=; b=L7G8FjuOQAUgY0vSnWCEepa6Z0xiaFCgbdbxp1NsHovExhtw2k3hRj1umMGehmph6W 0dLA89shxTXuEgZn2Utl0HKqb85I3d/mELJsHupmqEkHDH7NE/+FOLM+lOF0ZV+QPGCk RiVbCGXr87v/wZXZz3q6LGkcFp8llNHi0lPVYqYvLk3ePlAZ6drEh7OG6pL3Mjhcdnxi j4KwOvLGJV8BWFsjH6VWBGdxCtXf395DVEBRaLnQzeeSlxBBEdhTY8V5lRXxRy5hsbjL RG/EKaCRkNRqAna4Xr2FX9kTROUvkmS+YwxFL/kiHsNny0X4DPi/RCeZDF00RVmDzzDX vXJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 19si566892ejx.529.2021.05.19.13.22.32; Wed, 19 May 2021 13:22:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232144AbhESTmj (ORCPT + 99 others); Wed, 19 May 2021 15:42:39 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:53592 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhESTmi (ORCPT ); Wed, 19 May 2021 15:42:38 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 45FD91C0B7F; Wed, 19 May 2021 21:41:16 +0200 (CEST) Date: Wed, 19 May 2021 21:41:15 +0200 From: Pavel Machek To: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, gregkh@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v2 00/17] Adding support for controlling the leds found on Intel NUC Message-ID: <20210519194115.GA31672@duo.ucw.cz> References: <20210519111107.GC24621@duo.ucw.cz> <20210519141508.6e7a4d56@coco.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <20210519141508.6e7a4d56@coco.lan> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Marek and I are saying the same thing -- this needs to use close to > > existing APIs. >=20 > Ok, but I'm not seeing an existing API that provides what those > LEDs need. Well, there "close to" part comes into play. > > If you want to get something merged quickly, please submit basic > > functionality only (toggling the LED on/off) that completely fits > > existing APIs. We can review that. >=20 > If you prefer working this way, I can send an initial patch with > just the very basic. Actually, if you apply just patch 2 of this > series, it will provide support for for just setting the brightness > on NUC8. I don't care much. We can discuss minimal interface additions neccessary to support your usecases. But what you proposed was nowhere near close. Note that we don't want to support every crazy feature, just because hardware can do it. > However, the main reason why someone (including myself) want this > driver is to allow to dynamically change what hardware event will > be triggering the LED and how, and if suspend will blink or not[1]. > Being able to also change the LED color is a plus. This one is hard if the LED does not support full color. > [1] Disabling blink at suspend/hibernate is one of the things that > I use here: as the machine is at my bedroom, I don't want it to be > blinking all night long when the machine is sleeping :-) Ok, so lets start with the blink at suspend thing? Having power LED on when machine is on, and slowly "breathing" when machine is suspended is something I have seen before. Is that what your hardware is doing? Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYKVp2wAKCRAw5/Bqldv6 8lPiAJwOYgBn8ilKQYGqIfZ7v6ac0HT9dwCeJ24DUqksGzkO6d25IA75DI6Hn+Q= =U1fL -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--