Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3320996imu; Sun, 11 Nov 2018 12:18:49 -0800 (PST) X-Google-Smtp-Source: AJdET5dBwL+gAAKzEjZ+bh7+z4s7mfhTcrxB8FF4jtbTV/zlD3VWnMcfB51+CQ2MgHuw7MpH5Nj9 X-Received: by 2002:a17:902:4222:: with SMTP id g31-v6mr17147454pld.236.1541967529509; Sun, 11 Nov 2018 12:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967529; cv=none; d=google.com; s=arc-20160816; b=UQQ/KlKjPRQfQ8K26zXIbC22CwR0guGoyEmiWGgwEC2pcbdVUKj6nB3cBPBoRHw5vy BijcaGJ2VPZDfl7bg6VKFwsrTIAQ2G68BUT5EbyMMdlkEfsGf7HTvZ5e/EA52Zu6Mf53 6niRTRYD4r3gZxM7j/BaWhwXhWEMMI1uX4KJnY4XElJSI9Wk+3k8N+b/9WQoY7K2+soh V//MluZ5off4VL1FGTz/a7PKHg6eP1cjmIpSFlgW7xXOoT+eRXEfg/NoWjucM/j6EXCM TK2JS3Itq0GCVZpK5eE/nX5W6ol42reS0dbEqllPJGYQEUVRTzp3Y5bmDA+jT60eZjl/ NbSw== 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=pCSkdyy6oy8BYYyJPrrgu1mHHhJj1RQLv25nKz3giAw=; b=L6t4xrOqp1s2cg0F543T5rI1Y38qozTQmvULlDHwAnR4J+z3PP1xZL/TolVn0PbnPd i3gTNjkL9EGPkzmCKFyT+Yp1R9e0ds8aNnbvdPWxwEEBghEGIXFuriU9CdVYHZDwfIpi LDjs0YXkeHmTtTxgNQgp8NBFQ04sNA+rsg7tajBA/U5cDq+F0KOWYkQvOsPi+6hnGcFv R5PSgry+WenomnKUeBSX06F7sxdMhi3evYKCZZ6FlJPaL+Ar+q9jjujias7vRDj8SfY0 FA82+TpuYbXxXERnCNeNdfeyHRSUcx8x7l8Y9/xMEMIGV8+dbAAs1K9ZZdusHBrM709Y hS1Q== 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 y5-v6si13670891pgv.38.2018.11.11.12.18.34; Sun, 11 Nov 2018 12:18:49 -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 S1731888AbeKLGFi (ORCPT + 99 others); Mon, 12 Nov 2018 01:05:38 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53883 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731042AbeKLGFh (ORCPT ); Mon, 12 Nov 2018 01:05:37 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id AF3BE806E5; Sun, 11 Nov 2018 21:16:03 +0100 (CET) Date: Sun, 11 Nov 2018 21:16:05 +0100 From: Pavel Machek To: Jacek Anaszewski Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org, Baolin Wang , Daniel Mack , Dan Murphy , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields , Xiaotong Lu Subject: Re: [PATCH 02/24] leds: core: Add support for composing LED class device names Message-ID: <20181111201605.GA20160@amd> References: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> <1541542052-10081-3-git-send-email-jacek.anaszewski@gmail.com> <20181111120234.GA28794@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: 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 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >> diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/le= ds-class.txt > >> index 836cb16..e9009c4 100644 > >> --- a/Documentation/leds/leds-class.txt > >> +++ b/Documentation/leds/leds-class.txt > >> @@ -43,7 +43,7 @@ LED Device Naming > >> =20 > >> Is currently of the form: > >> =20 > >> -"devicename:colour:function" > >> +"colour:function" > >> =20 > >=20 > > I don't think we want to do it in all cases. > >=20 > > So, on my cellphone seeing lp5523:green:led is indeed not useful. > >=20 > > But on notebook with usb keyboard attached, you need to keep the > > devicename to be able to distinguish capslock on internal keyboard and > > capslock on first USB keyboard and capslock on second USB keyboard. > >=20 > > Taking look at the list of functions, here's stuff like "hdd" and > > "hdderr". I assume the first means hdd activity... If we can do it, it > > would be nicest to have "sda:green:activity" and maybe > > "sda:red:error". For a raid array with 8 drives... > >=20 > > For example I have a router running linux. It has 4 lan ports, with > > correspondings LED, and an wan led. > >=20 > > Having "green:lan1" to "green:lan4" and "green:wan" plus > > "red:wanerror" would work, but I'd really preffer > > "eth0:green:link"... "adsl0:green:link", "adsl0:red:error". > >=20 > > There are now phones with flashes on both main and selfie > > cameras. Again, knowing which device is which is important. As is > > knowing which display is controlled by particular backlight. >=20 > It's overcomplicating the naming again. In every case you can tweak > the function name to eth0_link, eth1_link etc. Well, but in such case it would be good to keep existing scheme. My system looks like this: input16::capslock tpacpi::bay_active tpacpi::standby input16::numlock tpacpi::dock_active tpacpi::thinklight input16::scrolllock tpacpi::dock_batt tpacpi::thinkvantage input5::capslock tpacpi::dock_status1 tpacpi::unknown_led input5::numlock tpacpi::dock_status2 tpacpi::unknown_led2 input5::scrolllock tpacpi:green:batt tpacpi::unknown_led3 I agree that we should get rid of "tpacpi:" part in some cases. But it does not make sense to get rid of "input16:" part -- it tells you if the LED is on USB or on built-in keyboard. Ideally, tpacpi::thinklight would be input5::frontlight (as it is frontlight for the keyboard). Yes we should simplify, but it still needs to work in all cases. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvojgUACgkQMOfwapXb+vKxOgCgm55bMnwwdPRG9f8nOhIzpyhq aOgAn2aKriCeAb5PGsRlRrPIqfT1S2Eo =HGY4 -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--