Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1030330yba; Sat, 6 Apr 2019 01:44:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3o9+I7O8eSY06l57SrmSCyl95ohv6vbE0hSD7vg4EoSdl7aGRcQnkk/sVkynFRfn3L0S5 X-Received: by 2002:a63:481:: with SMTP id 123mr17090660pge.167.1554540256801; Sat, 06 Apr 2019 01:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554540256; cv=none; d=google.com; s=arc-20160816; b=ahkfTlKlERfUhnWDRzcR8xTh+aBwgMcutHlE7Tt57Ta5DEDKgoEy8szzSXa4Y8PfGM IQigeCKrdo9kSY8cSz9IK+SXNikOn3J8whrIa8dSt5faqO5RmDqu0Y7cZMGPHffzQA4F cCsKQ2mGJgInIe3pEIJLmCiE/MvbKatR3r2sod7hjpfp/GTGOx0Kair44JdkUKl8OIFd yGcVYnfUXCMpBDvJfEWAfMwn2ZKkcJXBmHsbRDcLC+UmzM1VmErVdHobNkkU7vNXWlwh rRuV2xp/jOmZGsmkOoNQGuy6VsnNQSsxCmuQQah6pl1SkbkK5MydWStWEIbNdwZhGRGT 2jfg== 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=fNRc35D3zPeCKPIgbl5ORdsDhh/9YLuwx+kNklAZorQ=; b=Jl37oLXwEiEaL0F3t5a+Dcge0yjEUGgEI4a/+OXWpXzV5LCJob/H1PIfpxWPO8LvQn Vr8fExx2jEFJt1aDls/d/K1WbSU6x1qtJvzW3oS+0ZuL1v3H5qTJO3XUUinTAYAgt5gY 49qCJAohOv+Tbp/FyiI90dc22yTjBXYzLv66tCq82a4D21BruHQCk61g5ffBpdZt5+CP Ou1ZTJnKq8lXhKB5vCoSrXY73wN1hSiyfjazKjG2z/w+a2OH33zv3BCB3x/1XkKNAW4N 06rk9aBrYxT7A3pgc0ssgUxHT4E4cCidqagCEMukeYTCjEx+HJ2Gy3uBVZvc19uB2qwg sqEg== 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 h8si20362323pgp.446.2019.04.06.01.43.58; Sat, 06 Apr 2019 01:44:16 -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 S1726475AbfDFIl5 (ORCPT + 99 others); Sat, 6 Apr 2019 04:41:57 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:43764 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbfDFIl4 (ORCPT ); Sat, 6 Apr 2019 04:41:56 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 0FB82807F5; Sat, 6 Apr 2019 10:41:45 +0200 (CEST) Date: Sat, 6 Apr 2019 10:41:57 +0200 From: Pavel Machek To: Guenter Roeck Cc: Nick Crews , enric.balletbo@collabora.com, bleung@chromium.org, linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, alexandre.belloni@bootlin.com, a.zummo@towertech.it, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, dlaurie@chromium.org, sjg@google.com, groeck@google.com, dtor@google.com Subject: Re: [PATCH v5 2/3] platform/chrome: Add Wilco EC keyboard backlight LEDs support Message-ID: <20190406084157.GA27043@amd> References: <20190404171007.160878-1-ncrews@chromium.org> <20190404171007.160878-2-ncrews@chromium.org> <20190405201534.GA4426@roeck-us.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <20190405201534.GA4426@roeck-us.net> 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 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2019-04-05 13:15:34, Guenter Roeck wrote: > On Thu, Apr 04, 2019 at 11:10:08AM -0600, Nick Crews wrote: > > The EC is in charge of controlling the keyboard backlight on > > the Wilco platform. We expose a standard LED class device at > > /sys/class/leds/platform::kbd_backlight. This driver is modeled > > after the standard Chrome OS keyboard backlight driver at > > drivers/platform/chrome/cros_kbd_led_backlight.c > >=20 > > Some Wilco devices do not support a keyboard backlight. This > > is checked via wilco_ec_keyboard_leds_exist() in the core driver, > > and a platform_device will only be registered by the core if > > a backlight is supported. > >=20 > > After an EC reset the backlight could be in a non-PWM mode. > > Earlier in the boot sequence the BIOS should send a command to > > the EC to set the brightness, so things **should** be set up, > > but we double check in probe() as we query the initial brightness. > > If not set up, then set the brightness to 0. > >=20 > > Since the EC will never change the backlight level of its own accord, > > we don't need to implement a brightness_get() method. > >=20 > > v5 changes: > > -Rename the LED device to "platform::kbd_backlight", to > > denote that this is the built-in system keyboard. > >=20 >=20 > NACK. Please keep it as it is, it is okay. > Per Documentation/leds/leds-class.txt, LED devices are named > "devicename:colour:function" You failed to follow threads explaining this is being changed, even when I pointed you at them. What you are doing here is not helpful. > This document also states "The naming scheme above leaves scope > for further attributes should they be needed". It does not permit, > however, to redefine one of the fields to mean "location", much less > the declaration that a devicename of "platform" shall refer to an > "internal" backlight, or that there shall be no more than one > "internal" backlight in a given system. "platform" is as good devicename as "wilco" or "chromeos". Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlyoZlUACgkQMOfwapXb+vIzTgCdGkShC0MeKZrta+HxTkQUi6AB H04AnRnwkj3XaficTFJiKbidp2+kFc+i =ui1D -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--