Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41AADC43463 for ; Sun, 20 Sep 2020 23:36:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE979206B5 for ; Sun, 20 Sep 2020 23:36:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726156AbgITXgd (ORCPT ); Sun, 20 Sep 2020 19:36:33 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:57161 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgITXgd (ORCPT ); Sun, 20 Sep 2020 19:36:33 -0400 X-Greylist: delayed 303 seconds by postgrey-1.27 at vger.kernel.org; Sun, 20 Sep 2020 19:36:32 EDT Received: from desktop ([188.192.134.246]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M2etD-1kKQ311Qdz-004AAj; Mon, 21 Sep 2020 01:31:24 +0200 From: "Adrian Schmutzler" To: "'Pavel Machek'" Cc: References: <00ab01d68eca$d2d4fcc0$787ef640$@adrianschmutzler.de> <20200920110810.GA15219@duo.ucw.cz> In-Reply-To: <20200920110810.GA15219@duo.ucw.cz> Subject: RE: How to name multiple LEDs of the same type and color Date: Mon, 21 Sep 2020 01:31:23 +0200 Message-ID: <00f701d68fa6$2778ce60$766a6b20$@adrianschmutzler.de> X-Mailer: Microsoft Outlook 15.0 MIME-Version: 1.0 Content-Language: de Thread-Index: AQH6fbD/TLEvHSp6SoMFxV6GY5Lq3ALon7unqRMFZTA= Content-Type: multipart/signed; boundary="=-=1IothqVyydKlac=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Provags-ID: V03:K1:pwpLd9KnDRFOIqpO3DKKFgKaVMd/DnXKja/KB+icThAXK3ib2z9 8BKi2157lX8IqTBbRpudPxAScNJ4mtDGUdSYt1p6WwufQkw38oqhhIE4f7HE29x/+FyoPTl UJY383xxKqdyjvw5gbvptfWE1Z3s+/qsQQAIeXtxIFFnwPHZzmASH7nkZy99xjKGqgF2joM GDDMx0uFH7OH40HfxpOYw== X-UI-Out-Filterresults: notjunk:1;V03:K0:biAfra/YnHs=:DO/GFJK3fbwDrzJtewfym/ JqwEulnAD6V2EbNBGTRAejazC4sLC65K7X9UEswwboHegU9a8qqN6puilvKJuE2me1Bu14q1Z yJYt4clKmyH53iZxb52HjMuJ8X0RS1lq9XJEgOpcHuFQRLOmDMuyxOoHbeu/iDdSxEQ3KgAI4 bptVKNY/qVtJsQa1h0MRN5ei+ZsfU6FLKQaZ5rzNud55ptk5xauL6F56+MheqnqT2MVHBLF7P pBLxnSVDlsglwy0E8vlAAbm2OXJHtKySqwnkalTl0T7rkuyYa2VQAPwzW44vzL5WbROykc3Gs 5k3HGS/bctWTeCvqnQe01uva1pN8Pm1fwyd2xwWpOMp5WysnBYr1g24MdaXmh4F7LOHrP8TSO UcBvl+SAN6rX0xJQOwCLsVUH9S39ulktaf5OCvMsQyqHPDpRKnxC3d/uAi2D0eKf/KzWH5ckl fOLyIQnljCDUId8T+3g1iVWfnaDb33IlDw46OPuXVPPZxd31e7R75jmyq4zLloHjo40PVp5KN xjNb6tgjBm5Uf27YtLVpfv7bYvnQ28CIr0R+2zuHoKNfsOAk+tqHgH0tDg4c+gELtPLEItRae I901T+NSfSzwqdhtahqyjVWyKf/PSayJX9xkUJvSexByrVJ5DWa4Q/FHCVN8mcWZFIox4Yc4S OLCDyYbj3fRWLuly/ZTq1vxr6UTm+acyofc3kdibZhPhkp0HiiAQzzxt7Zb3yEAnZaw1FO6PZ 2bctJCXOWsjbFIpnDjLNwyMWIuuMBrgvUbe+ftMRakn1o76wakawrwVkTGVkLFdMZIgcLZhsQ Of0sA3p5GOHT+lE3Pc8VVkbuOAciaJjKL0+3hT6rFGsIPRD/Dlqf6vnJJsp2OQRCEPb5SVK Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org This is a multipart message in MIME format. --=-=1IothqVyydKlac=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 link3 {=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 function =3D LED_FUNCTION_RS= SI;=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 color =3D ;=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gpios =3D <&gpio 15 GPIO_ACT= IVE_LOW>;=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 };=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 };=20 > Well, this is not really three LEDs. This is more like... LED meter=20 > composed of three LEDs. And we don't have good support for that.=20 > But I guess we'll need it one day. There were some previous attempts:=20 > https://lwn.net/Articles/802967/=20 > Do you plan to control RSSI LEDs from kernel?=20 To be honest, I mostly sent this patch for completeness. OpenWrt uses a very simple process written in C for updating these LEDs, wh= ich is quite old and has essentially remained unchanged for years, but does= its job. I personally don't think there will be overwhelming interest in touching th= is and migrate it to whatever different implementation without a pressing n= eed. My main interest here was/is that I started to evaluate how OpenWrt can mig= rate from LED labels to the "new" color/function syntax and to me the rssi = leds are a dedicated type that should be supported. So I fear I won't be helpful for the implementation of RSSI leds in the ker= nel in general. For the three leds vs. set of leds discussion: Note that we are interested = in (and already do) exposing each LED to the user individually (in user-spa= ce via sysfs), so the user can redefine the purpose of the LED freely based= on his/her desire. Therefore, a total abstraction of the set of LEDs as a = single entity would be detrimental for us here. Best Adrian=20 --=-=1IothqVyydKlac=-= Content-Type: application/pgp-signature; name="openpgp-digital-signature.asc" Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEESgN6p2H3WoMOAf81oNyKO7qxAnAFAl9n5kgACgkQoNyKO7qx AnDMHhAAg9fgg+aElOnjZNYoSSugmlGA9qr1caS9/3oPorQFo6Iv96RKHH0QeNye a8WXMaHp3zPEwo2reUmjQ0+JjRRe8e2487NSqv1shz3LTNCVTF+u+veKcWjjq+mw ZH9G9rvKcMt+MxdWpbmbxZqrIf2ytSeylbW1/Y7x1o5SjTtFq4y2qkBT0m6LnbdW t9rc1sHg3xtARdqjb+C92Kc2Izc2fJTi7XYQOnhNGa/XbFIbCsLaGPPS6gZUbX5r Kx0rluYMWDp2sQkNVEMkUY6kZ0HK2G1r8tqDTYZFyS+OMyuKx/pgkEEs3XrQZo3K 2/C0qUK/A/++SAdgDemoT/1/QFlw9FItS/xADktl6K2nowbVRs03cW4DYG7UGcao i67LAoVO2AgTN0V5gkachCoBP1ukg54Jl3cYTTAKqKCpLvUKw8fG065rL6cFthAX GTa1wrdBToX2GFghup/RGJsm+K5wffDLdX3qRi9bN6Ps52Zy9Ph9GZW7ogm5Hbw3 iUXn2hVvDlpK5YymckBFWLsnWICjGYI4qqTR5GjqQ/iGQqrQPjpM6GoI5Js6z0sL rv/uNtQ5bvYEbfRH5SogypFRQK3Jsyigra/Im7VKN/mZ36CP5HebLMJJE5iK5A/4 8JrGdrUXFXE9kBNN6PEFdVxJjcGOhOZIOpGYOf9kT7xzVQZOWu0= =hwwK -----END PGP SIGNATURE----- --=-=1IothqVyydKlac=-=--