Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1642820yba; Thu, 4 Apr 2019 15:10:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkumW5/UPRk2VD38tGKr0kR9l/vKC8PWbL/NLgMwdx4XyaX3ZZi/QceH4uj0G7GNDQUmZs X-Received: by 2002:a65:65c5:: with SMTP id y5mr8126534pgv.192.1554415858203; Thu, 04 Apr 2019 15:10:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554415858; cv=none; d=google.com; s=arc-20160816; b=VnjtnsT7xEMMKB/hQeXMYf8jHocF1TrOvFbWi/ds0kGxztQUtIgaLr41IQJCZR+9cV oPAQbEiQ8C6Fsg/W4EYvmlDJrjQ303NcnM4uaBkA1Mgxf6YluBYiwgIv+kWV4FNW5nkQ fldU8YLMmqCk3gSSAkfq1YZl0sW/bGEnvFoy5XlhUM3P9YWWV2WeTf1diATOElRw2qu8 Hlt3+wykeVgwNq7mKKz+SuubG2o/9w29wGR/uMAWq10MyJlWJjfgdGtIgm3roAijHBDD JA+bCSD3nkOWRrpO52his1+G8KoXYv7jFngD5MKRco9NJffwjmDKkw88ISj7yEcjqrM5 8/fA== 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=PXlNgaU4pke+JtjrsJZt1ZvBKjApMK32J4dL38Y5fnc=; b=p3dR4p3acrXAjHygQE13pYpQ8eP0Hxs+WeiaSS9KoVNP+ZY1VMYcm5UihGVsKJsA22 Hxb0Jv4+R628G9yJgNujA+nWDnp/wlJHVMp7lupzq6RcLMhcXjPFRcuUcqtMCBlU9gLd RiFK4vxDXue/GEAdLQVP2Zwa7h70EyybSANsEyALKZFpJHugFCkyza8WzE/2KK1nZENW bDhAJ/NpRJ5DpzQX1dW7Zug9+jnn5FIi4ayOhDH6PyZ+/+SISLK0Yc5O7el+nhCSQARP 55V08896QzRWQvVFjwIZvtnBXLr/Vc5DvrI6HCtkCnPtiWSvEg0SFWen6Y/i+sFlTN/n oNNw== 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 h25si8759350pgv.244.2019.04.04.15.10.43; Thu, 04 Apr 2019 15:10:58 -0700 (PDT) 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 S1729977AbfDDWFL (ORCPT + 99 others); Thu, 4 Apr 2019 18:05:11 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36317 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727263AbfDDWFK (ORCPT ); Thu, 4 Apr 2019 18:05:10 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 0DE46802F8; Fri, 5 Apr 2019 00:04:58 +0200 (CEST) Date: Fri, 5 Apr 2019 00:05:09 +0200 From: Pavel Machek To: Dmitry Torokhov Cc: Nick Crews , Guenter Roeck , Enric Balletbo i Serra , Benson Leung , linux-leds@vger.kernel.org, Jacek Anaszewski , Alexandre Belloni , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel , Duncan Laurie , Simon Glass Subject: Re: [PATCH v5 3/3] platform/chrome: Standardize Chrome OS keyboard backlight name Message-ID: <20190404220509.GA14690@amd> References: <20190404185919.GB27340@amd> <20190404191931.GA29984@amd> <20190404200658.GD29984@amd> <20190404202042.GF29984@amd> <20190404204207.GH29984@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" 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 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-04-04 14:48:35, Dmitry Torokhov wrote: > On Thu, Apr 4, 2019 at 1:42 PM Pavel Machek wrote: > > > > Hi! > > > > > > > And what to do if internal keyboard is not platform but USB? Like > > > > > Google "Whiskers"? (I am not sure why you decided to drop my ment= ion > > > > > of internal USB keyboards completely off your reply). > > > > > > > > I don't have answers for everything. Even if you have USB keyboard,= you'll > > > > likely still have backlight connected to embedded controller. If no= t, > > > > then maybe you have exception userland needs to know about. > > > > > > > > Still better than making everything an exception. > > > > > > You do not need to make everything exception. You just need to look > > > beyond the name, and see how the device is connected. And then apply > > > your exceptions for "weird" devices. > > > > "Where it is connected" is not interesting to the userland. "Is it > > backlight for internal keyboard" is the right question. It may be > > connected to embedded controller or some kind of controller over > > i2c... my shell scripts should not need to know about architecture of > > every notebook out there. >=20 > Then your scripts will be failing for some setups. Well, yes. Do you want to guess what "lp5523:kb3" is? > > But I don't see why I should do additional work when its trivial for > > kernel to just name the LED in an useful way. > > > > "platform::kbd_backlight" has no disadvantages compared to > > "wilco::kbd_backlight" ... so lets just use it. >=20 > It has disadvantages because it promises more than it can deliver IMO. > If device name !=3D "platform::kbd_backlight" it does not mean that it > is not internal keyboard. My promise is if "platform::kbd_backlight" exists, it is backlight for internal keyboard. (And second half is "if it is easy for kernel, we name backlight for internal keyboard platform::kbd_backlight"). > And you still have not resolved how you will > handle cases when there is more than one deice that can be considered > internal and may have a backlight. Is that realistic? How would that device look like? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlymf5UACgkQMOfwapXb+vKzcACglDFnvuW4ng5jw2GcgyELfmD0 JQ8AoKvpn9D+y5a1b5az/OPzOxCidpsH =o1lt -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--