Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1609354yba; Thu, 4 Apr 2019 14:23:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzx5LpoiQK8zu+dhmiPp1PLwdPEF8YcWkLsKBPmBDduQ/lBwq7rlR/YsZbm66qnerNVskCh X-Received: by 2002:a65:50c4:: with SMTP id s4mr7756522pgp.33.1554412981558; Thu, 04 Apr 2019 14:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554412981; cv=none; d=google.com; s=arc-20160816; b=XdsDMbFA8v658bmGZ+0wOdiXgXOXsCTEReyM0hlbLAvqIPHFi/4GIUR5emIZYnOUXr ldQ9qf7yDF2Sbux9iZBgH6ah8K5KA2Y0ZgErh3kOGILFOoWW0qJKspPkpeezzWXko5Zr xKR91Mte/fxO+HEAph0BxD1X+zwnBvsS7RwvHFTjA+rVbOYZmTkUG+tDdUm13XlX37KP E/5AsBhYHIa2x7baDMC5iYPOH6tXu73JD6skJw5LXunxQ1/aRvqAVILMA0hLdZZ7zmcL HI5X0azya8kEMWQ294w0J4E5SeF/ossfQRJ0QMOyHsB7vtCx6eV+trkVLCHYBo4zlbdu vakw== 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=68bTwM8e8Z7Kc046zw31KMm77tg3a7Rl9i28P4/Gpis=; b=DPAhMzO2SB95KWwIqrXBczi2Y8Inhl2xbOA3DlhdaRwvHCq5js3bRVdnuZyoSLFB1p Ri/sF/TrxzyxwfRpaUwKY4JKEk2ure5ZsQCIMsDf1iLMk6E2juc+uk8lWNPFjEl3x91x 3Pqn8/wRJqTdX8uc6D7aEt86+QMIzl8sEBJPy8O96ZpXMwOnZ6QK+fLJmty5a4hjpjFw PVX0Pfr9b4MwuGytcvqfGMMlsJdvCkeRY32YrImVeiAScgwI8bUKTZ9uGCPkg8/vwATR Jlk2gBrVZlxAU9ggw9KATOhwnWmKNx9KHNzX2tpHqHK2Q6A1UYondiIKd5nVWFZZgnk8 Fimw== 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 x10si14704647plo.422.2019.04.04.14.22.45; Thu, 04 Apr 2019 14:23:01 -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 S1731082AbfDDUeH (ORCPT + 99 others); Thu, 4 Apr 2019 16:34:07 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:34166 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729400AbfDDUeH (ORCPT ); Thu, 4 Apr 2019 16:34:07 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 5E3F3802EC; Thu, 4 Apr 2019 22:33:57 +0200 (CEST) Date: Thu, 4 Apr 2019 22:34:08 +0200 From: Pavel Machek To: Dmitry Torokhov Cc: Nick Crews , Enric Balletbo i Serra , Benson Leung , linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, linux-kernel , Duncan Laurie , Daniel Erat , Guenter Roeck Subject: Re: [PATCH] platform/chrome: Add Wilco EC keyboard backlight LEDs support Message-ID: <20190404203408.GG29984@amd> References: <20190308210843.GA16125@amd> <20190404112415.GB18653@amd> <20190404190326.GC27340@amd> <20190404192331.GB29984@amd> <20190404201103.GE29984@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RDS4xtyBfx+7DiaI" 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 --RDS4xtyBfx+7DiaI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > Because I need to understand why you believe that device name for > > > kbd_backlight matters, and having wilco::kbd_backlight is a bad idea, > > > but, for example, having max77650::kbd_backlight is perfectly fine if > > > somebody decided to wire it in this way. > > > > max77650::kbd_backlight is not fine and we'll try to prevent that in > > future. >=20 > You do not control DTS for systems though. Actually we usually do. [And the name can still be fixed up in the driver.] > > We want one name for internal keyboard backlight. What exactly that > > name is is not _that_ important, but platform::kbd_backlight seems > > like reasonable choice. >=20 > And I am trying to show that depending on device and product (as in > entire computing device) the same driver could be used in multitude of > ways and expecting that all devices that can be internal will always > have "platform::" prefix is not realistic. It will also fail if you > have multiples of devices, as you need unique names, and that is what > component in name provides you with. I don't see what you are saying. We know that wilco::kbd_backlight is always internal keyboard backlight, so we name it platform::kbd_backlight. We do the same for similar drivers in future. I don't see any downsides. > You need smarter userspace to implement policy that is best suited for > your product. Maybe you can help it by adding additional properties to > LED devices, like we have connection_type in USB ports, to tell > whether device is internal or not, but I'd leave the naming alone. We may need smarter userspace, but it does not mean naming needs to make it harder than it already is. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --RDS4xtyBfx+7DiaI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlymakAACgkQMOfwapXb+vKhtQCePUyb8436Nu7yGSsfiLH6gQpK 1rkAniD3KdsbtLE8fdfyKmG2Q32Opn4B =SWjM -----END PGP SIGNATURE----- --RDS4xtyBfx+7DiaI--