Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2302435yba; Sun, 7 Apr 2019 14:47:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqygmHeOOq06WOIv7e2JLqC2iG8QGKmCkR6Ixumr2f8D/d78mr1cXyRzeCnYW+Y515YuyLGD X-Received: by 2002:aa7:8609:: with SMTP id p9mr25948363pfn.166.1554673664646; Sun, 07 Apr 2019 14:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554673664; cv=none; d=google.com; s=arc-20160816; b=gXeO3t6RwJFKJcsBc8+YaJ525//43BMDM3UckFg40mKrGoo2TrSri+Whvuic1D7P07 ofS6JbfFLnx0/pmLt83QpPYnz1x4qm3NTsRs8LuCA3Iyg96wSDVDjpIjFzXAwQrCzPJG 1EdXks9LYyNRDgA7QtlNdeie8xhhCYz5BkRgTA+N2rhOYaXx5vv6+RpCmRdombhcpTZc 2+Stpcnw4Zwp7Qxma8Xe0/vMz1EaD525qKpasbKVPBo3tdDH0Hrqj5juaZlyprZuG4yT YErAqecRyoqKjdFWzM71yLrO1M68NFXD47vvHxHP2kXhes7ZCmY2+FS+/Npe15HPdp5K Xvtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tt4h0HcSfIPpBua6kI5tfB/v3gS3Ph/COQYGEMLRKK8=; b=o2as96mu3HyAgD4otRkVgnYtY+ZtCMXxfmKCz4isjndH+MGH1ayh3DQ9ESgyzP8GTL i0dqpwuHgSfE2QjMItyJkyAxUMydWmvWOid2N7WmOROyecIrGQurZUKE90qbIJjk03yC HBTp2+rK/fniZpBiNIQUkSlLoboyyrAd3ZONRMmNzV/kSr4Sslmr9jeJmn/0pyZGYHba q+bLI+KHShiLYb91+tnSsE7O4tn9lxtHrSFr2ins109IlcFgPat2WkC+9R9M86WGqMMG AjWUOlc2gQoYwSzaK26oBPYGcq6F9VWe+tOSWbXSyFphpUHiOGQGWd5JD0L1Xt2gPu43 9ykQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="c5gvf/t7"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si18379082pgj.363.2019.04.07.14.47.29; Sun, 07 Apr 2019 14:47:44 -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; dkim=pass header.i=@google.com header.s=20161025 header.b="c5gvf/t7"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbfDGVqm (ORCPT + 99 others); Sun, 7 Apr 2019 17:46:42 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46193 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbfDGVqm (ORCPT ); Sun, 7 Apr 2019 17:46:42 -0400 Received: by mail-lj1-f196.google.com with SMTP id h21so9421991ljk.13 for ; Sun, 07 Apr 2019 14:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tt4h0HcSfIPpBua6kI5tfB/v3gS3Ph/COQYGEMLRKK8=; b=c5gvf/t7JfSRJp3sKmF530MyJQ7rjwBkjJManjXmqcyIj3SL2MVzlAhVk56Iagxaaq AkPpDpDaKDoCTZaNLfHKuSkEE6/aBbCrV7eeeW86OJ55ZmC30N2/eEQ9vVXhfc52PgDN ftRjOFDjqgQytcHh5n6H150Qz3rKypF02cWY9wm1ggnI6T41iqzXlYaW6pmal63+fEU/ CCCRVanC8bGpfSQ3vvvj980UaWxIKL3J1y0tuj7xB4jsIQnJhFQrvzApRE/xnvMKkjAs MyHT/N543CDYzflUAuQ/tv5kZSXC0QqKruQt4vE+9nKFXbT5etqDtd+jav4OGWJDOMQA yYjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tt4h0HcSfIPpBua6kI5tfB/v3gS3Ph/COQYGEMLRKK8=; b=q5BJ+iicD1/7DcZjavnSDFmWjH7vq1gY8F1cUOkxEdM5ATvgCFok1sdFnTcbuIIigX FQtDP5l8NKg066RnkrYYXGLXo63dC910Yvhqw1b8ijlkR28ZLNKfnhBz5v4/Z8KFcpLd DKpg+WG9+1Hn/M9fx2Unh3DoIzomEyf3PTjbqmGOEuHLvytGgF/Z/D0x4sS/ttKaq8uN 0ZCBq7ioYXFBn1WDp+UMbl1usd1mHIi4dNfUzO90YaoU6Eg+s/+hF+qhvJzM6rDoM3K2 LE3zzhnGtuOMZX5cdkts5Dn2mWk/YGt8CofDQG4XUlVJPYdX8nb56hbftJ/qgM3LVOa4 vYNw== X-Gm-Message-State: APjAAAU21vOqoO5e46HemVLyWdc20eMCszNDu9O8e/KO/q0mAYuxm9kE +qisNbmSlrx9LDj1e+0tDp42V5We0vvTrXGJ+73S2w== X-Received: by 2002:a2e:7d19:: with SMTP id y25mr11143388ljc.126.1554673599589; Sun, 07 Apr 2019 14:46:39 -0700 (PDT) MIME-Version: 1.0 References: <20190404171007.160878-1-ncrews@chromium.org> <20190404171007.160878-2-ncrews@chromium.org> <20190405201534.GA4426@roeck-us.net> <20190406084157.GA27043@amd> In-Reply-To: <20190406084157.GA27043@amd> From: Dmitry Torokhov Date: Sun, 7 Apr 2019 14:46:28 -0700 Message-ID: Subject: Re: [PATCH v5 2/3] platform/chrome: Add Wilco EC keyboard backlight LEDs support To: Pavel Machek Cc: Guenter Roeck , Nick Crews , enric.balletbo@collabora.com, Benson Leung , linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, alexandre.belloni@bootlin.com, Alessandro Zummo , linux-rtc@vger.kernel.org, lkml , dlaurie@chromium.org, sjg@google.com, Guenter Roeck Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 6, 2019 at 1:41 AM Pavel Machek wrote: > > 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 > > > > > > 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. > > > > > > 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. > > > > > > Since the EC will never change the backlight level of its own accord, > > > we don't need to implement a brightness_get() method. > > > > > > v5 changes: > > > -Rename the LED device to "platform::kbd_backlight", to > > > denote that this is the built-in system keyboard. > > > > > > > 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. Pavel, what I find is unhelpful is you requiring to conform to the new rules that have not been accepted yet and for which there clearly are objections. You keep ignoring all the issues that we continue to point out with your proposed scheme. I will go and try to reply to Jacek's thread, but it is my firm belief that changing naming scheme is not what we need to do here. > > > 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". No, because "platform" is not a device, it is something that you are trying to assign a magic meaning to. Thanks. -- Dmitry