Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1508132yba; Thu, 4 Apr 2019 12:12:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV34OkwxhczHGdzQzssKmm54dLDzhbA79/sXZmC+nXbvHJAPo9Igt4pnUMUCcLoCI/Q9BK X-Received: by 2002:a63:5b4b:: with SMTP id l11mr7387917pgm.95.1554405145623; Thu, 04 Apr 2019 12:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554405145; cv=none; d=google.com; s=arc-20160816; b=VClTtayOJC+XO8UWoqha6Vtk6ctH8YgHA3D4TTJ+VMB4/BiDnoOWGnPqREvChwBAhS YhmH74S2HLh2AtUTg35ll7zQaaaOIRPUEGmx8TMECZeu9nGJJ0SNWtaUWI7ExlMu44Gt f7pafiN0W6+53/iiVhafa1zfG3sg+8Tb/eKqd8SNutYB/37Ny2oBN+fqeeB+TRQ9mbTt tN0LtiSZ5Hz3iNZUYnaXEq3FWc62hlqg/8ciso7dNoNJNxeIcP2oZd8AFO9z2jpRAgoE PbKBMNTtsUeaZWA7oTtOLHN4ZlniXuEhFJxjidUFfzzswu+Xt1z9M/2FJWpMqE4VZgDe XeIA== 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=OcQ6KsvNejmpUh/2q7SELuFlGd/570l7ZBSItTRB/3Y=; b=ZkLyyzHRwkO24rksee0sPGx44whIOnKMT6iZvXYVnJI1SL1+ujGUsBsQQ3J4zE2mCe nxpEOGRsUwQvwOne+lwll1AUgIaxP64gERzS3VstzljO2JLI032z2Tx+lHrczjAuZCTN lpiXdRfWdN/ZNCuSMjA2SyN7uM4BiXWA73ndcId63TsGWn3DyyCz+X6BIG5pW7vVTa47 XaccR7lKqC1vwZ1bAGEhAMS1DPrltSWjYhb550FsANz2pr3ysitWqICyb97Ud4rNyaf3 BE5Bd2IGWg4QauvQ4lceyiW6CS2RnI6wg4OpcCNLKd5YJ45VIv2+QynTXroz2KRbQvwT /McQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Z6AUyGdv; 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 y13si17069102plp.238.2019.04.04.12.12.10; Thu, 04 Apr 2019 12:12:25 -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=Z6AUyGdv; 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 S1730110AbfDDTJ0 (ORCPT + 99 others); Thu, 4 Apr 2019 15:09:26 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:35483 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729848AbfDDTJ0 (ORCPT ); Thu, 4 Apr 2019 15:09:26 -0400 Received: by mail-lf1-f66.google.com with SMTP id u21so2636223lfu.2 for ; Thu, 04 Apr 2019 12:09:25 -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=OcQ6KsvNejmpUh/2q7SELuFlGd/570l7ZBSItTRB/3Y=; b=Z6AUyGdvfu7xNM7xzyFHJtaJ2pVTZybbrZLZywFlbYuKrnqTfWQ0TQeJQ2bpekCBsE GkF2RO+O2qwsUUIhToW7lNhi2bxjXjKyAmtBLQhi6bsZDhZ4C/ubq5XPp69mPalvK9Bi s+0TYyx/0WldH9UQVTWlRwjMel5AHF5SlvFOA8BqpHw8NhMrIB6Gjb2K9NyUcydb96xp tYVN1J9f/NgR9GhQRH+QfoE0SUdrbPgD4+yMNkANOG5OOIftS0vZVCQWH6QXbwBLKB1d qN+6uNNAHY+iKtJ2mrzqhhNNOC71TXA49UM916JGsco1TD4w7Vt2Ih9HcFov2cbpOy6t aFiA== 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=OcQ6KsvNejmpUh/2q7SELuFlGd/570l7ZBSItTRB/3Y=; b=Xz8vdt3yy8Af8+aQ5pfknKfol32pRFGJ5hjUEbKhbh0cuqs9i3J8Z8lZm1hm5Ak80r STmiF6EyBKUZJca8JEj2LSKDRwfSEsxXXa5k843f3+ZGSy5fQHnPVkSP7ZMzzwXqhL17 cjbg3Xupcd22KlAaEWpd4YZWMqNTTDqyFQ2K/QS5TrzrNAbvgcH3wicQF338q403tmwO mFTCy/zUWUre5vyZc05CR1aKgPdxcXRc9UIoTsDJM831cLg62WxdKNz4osHtQp0rbu0f IKCAO4ns4S8G8JjW/Dv2GW9+aR5vExHL1zXwvQB+w5uEtrD6v6263+EjPHifU6gs4PXs IFXA== X-Gm-Message-State: APjAAAVnnXJP5oCRpJig4MQCCM2OAAI+Aay1F0Rlb1C6GQq8am/OQzR2 RoLh+Fz3gKe5hybV1IQyis6l5HpOuJLSfzTzKRJhCQ== X-Received: by 2002:ac2:5108:: with SMTP id q8mr3819296lfb.99.1554404963915; Thu, 04 Apr 2019 12:09:23 -0700 (PDT) MIME-Version: 1.0 References: <20190308203801.57920-1-ncrews@chromium.org> <20190308210843.GA16125@amd> <20190404112415.GB18653@amd> <20190404190326.GC27340@amd> In-Reply-To: <20190404190326.GC27340@amd> From: Dmitry Torokhov Date: Thu, 4 Apr 2019 12:09:12 -0700 Message-ID: Subject: Re: [PATCH] platform/chrome: Add Wilco EC keyboard backlight LEDs support To: Pavel Machek 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 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 Thu, Apr 4, 2019 at 12:03 PM Pavel Machek wrote: > > On Thu 2019-04-04 09:13:27, Dmitry Torokhov wrote: > > On Thu, Apr 4, 2019 at 4:24 AM Pavel Machek wrote: > > > > > > On Mon 2019-03-11 09:29:06, Nick Crews wrote: > > > > Thanks for looking this over. I will fix most of your concerns, but > > > > have one question. > > > > > > > > On Fri, Mar 8, 2019 at 2:08 PM Pavel Machek wrote: > > > > > > > > > > On Fri 2019-03-08 13:38:02, Nick Crews wrote: > > > > > > This patch is meant to be applied on top of the for-next > > > > > > branch of the platform/chrome repository, as it uses some of > > > > > > the code staged there. > > > > > > > > > > > > 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/wilco::kbd_backlight. This driver is modeled > > > > > > after the standard Chrome OS keyboard backlight driver at > > > > > > drivers/platform/chrome/cros_kbd_led_backlight.c > > > > > > > > > > Can you make it "platform::kbd_backlight"? We want some consistency > > > > > there. > > > > > > > > The analogous name in the standard driver > > > > drivers/platform/chrome/cros_kbd_led_backlight.c is > > > > "chromeos::kbd_backlight", and I thought "wilco" was a better > > > > substitute for "chromeos" than "platform" would be. What other thing > > > > are you saying "platform" would be consistent with? > > > > > > Yeah, well, we not let the cros_kbd_led_backlight.c use chromeos:: in > > > the first place. But it happened. We want all backlights for the > > > system keyboard to use common name, and "chromeos" is not really > > > suitable for that. "platform" is. > > > > Pavel, who exactly wants this and why? Looking at today's -next I see: > > > > dtor@dtor-ws:~/kernel/linux-next ((next-20190404))$ git grep > > "::kbd_backlight" | wc -l > > 18 > > dtor@dtor-ws:~/kernel/linux-next ((next-20190404))$ git grep > > "platform::kbd_backlight" | wc -l > > 0 > > > > so there isn't a single instance of "platform::kbd_backlight" and we > > definitely not changing existing names. > > Yeah, we made mistakes in the past. We _don't_ want userspace to have > ever growing list of names for userspace to follow. > > Backlight of internal keyboard is pretty common concept and there > should be one name for it. It is the *function* that is interesting to userspace, not full name, and we have proper standardization there. I think before you demand changes in the drivers you need to get you naming scheme get accepted into mainline (Documentation/leds/leds-class.txt). Thanks. -- Dmitry