Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1503818yba; Thu, 4 Apr 2019 12:07:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyozVjPl8oIy/q2NAhQDCCMoZgh1Vij5Y00FvVc1rqDzs1eZoejwqCj1Iibsf0/mkhR5VUG X-Received: by 2002:a65:6148:: with SMTP id o8mr7656030pgv.153.1554404841755; Thu, 04 Apr 2019 12:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554404841; cv=none; d=google.com; s=arc-20160816; b=pN5LdOWFHVOHmC1GRC4grxIWkJ3kLB/9oYO2pFwGBto2D7DC5zsNxMbnndUpYmGMfg EmA8T+Z2i7ZR2iFCBcCBaaFZG0VRh2/aWQKeizoE/xTFri8X5ZxUW6nPR5ot8E4uKkVM V7q09DSdhLzCLohcKA5nkni0mz+RReBv4ctkr5lcvd+ELXmq+qCtQSJsrwMWbp5p46Jk T6AQhQCQNb8UZskPmS89/4b8VajV0OMWaH6KVTbIhNeVTfmiXMaPOv1WArntHVTbKpOo 7s7zT8/E+8d7B7lIJsG62t2WA4rnvpd6FL+nZ59Y6YgCIdJzl7Of7Ovj8+5NijlAagQC 4M9g== 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=wKp1rToFdUGex172LVCX0S/Lj/+9JfBGYyB2ooa9bw8=; b=MImEUfm74MsPz+UXoKruRVT7Yq6txLy0Ovcnqj13nE40+XdjmGRbPadhOOvdi6w53D VFZGSPVOJlaw+SjSxKuyQYn8bgbPpGXXoRLd8zbmgQdGcNQnAqkfQhAIOFiZF1/9N1JA IOoplq4CWBoc8R/j+/vqSf67qNp6N9EM3OJSCO19MqnJyckDCHxcfXSHEL1XLMMxvz+O 0Q0HjQpU7kFB4861Q0HCbklevJX6gPTYhEKrPG8O1BabcfmUCTT505wGo0Ufb6APyqmy CLirnASue7Z8CtMAF3doQ6xEJIjo4CX8BZSSv//cpVFtr5wRODFzklOMKK+yPgoIQ7xA flFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="J4/GFTF6"; 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 l1si17919394pld.210.2019.04.04.12.07.06; Thu, 04 Apr 2019 12:07:21 -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="J4/GFTF6"; 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 S1730065AbfDDTFy (ORCPT + 99 others); Thu, 4 Apr 2019 15:05:54 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35260 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730021AbfDDTFy (ORCPT ); Thu, 4 Apr 2019 15:05:54 -0400 Received: by mail-lf1-f68.google.com with SMTP id u21so2628716lfu.2 for ; Thu, 04 Apr 2019 12:05:52 -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=wKp1rToFdUGex172LVCX0S/Lj/+9JfBGYyB2ooa9bw8=; b=J4/GFTF6WiD2eqrOe/qDLL+4K0u79+9aUDktAtydDNX5hWx0OHDh2X7kJpjzwPpchV SiWfee8aMiHpq1J5aSp3kZ1IibqcozEXsT200sZ+Nk5JL9PCRCZlYxeAex1+8/9ZCfmG YyCpUc/8lROQ7J9Nregwatwr7R5QYLZhkUZ4U0Q8v+cXVqTkzhVTmXe8b2/kyw6qfDca Cf3gEs97AG5NYPWLQQaxwyCju/kBzaOjRhp4ngkT51sPzd6tIl1CjXiC3RTccZvoB72z d89G8uVn8unlC4TLC3lMJJF8DKuKdc/aRrJ9nSa2PQbx7JoRjvmoteEyeJ2LL8YaL8qb zARg== 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=wKp1rToFdUGex172LVCX0S/Lj/+9JfBGYyB2ooa9bw8=; b=Vr0dMeIW0Tz0e8pbJi0QGfntxoaUa6dkkBWc1fA96julN1giCWcRiY5uytDxuI5n6r aThowLp0QsUVKn0dmPdbR9qi/SwFt0rr1S/YOK2kAAhCFhsmBfxJURzqx4Sur+CFNStW A4VTh+KJpDIACCQffJEArgIIG8mf0EbyrSRmcQI33rwqoHRT+gnR4aYX8BXIqFr7XxlU sslgLjyAyFGkNICskTyuW93XMngNCGomSpdvLeK1phaDlbTXLGikHY7f6HrM0E9uyQfP 4DrOUsa5s+HJpXNO92r25dPA3O0RJi1vBBzeATpndEzSIJf8zj9GE+Mp6jYYzZ+lTDcn paHQ== X-Gm-Message-State: APjAAAVmmmaoqM2WARWwctd6rNIXWITfq6RqxNDgbfA4riyFxGTsAEfJ sXAFqOl0WD83dFIsHQmPsWvcQBDlo3sHzzSPUECbaw== X-Received: by 2002:ac2:42c8:: with SMTP id n8mr4302514lfl.28.1554404751351; Thu, 04 Apr 2019 12:05:51 -0700 (PDT) MIME-Version: 1.0 References: <20190404171007.160878-1-ncrews@chromium.org> <20190404171007.160878-3-ncrews@chromium.org> <20190404185919.GB27340@amd> In-Reply-To: <20190404185919.GB27340@amd> From: Dmitry Torokhov Date: Thu, 4 Apr 2019 12:05:39 -0700 Message-ID: Subject: Re: [PATCH v5 3/3] platform/chrome: Standardize Chrome OS keyboard backlight name To: Pavel Machek 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 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 11:59 AM Pavel Machek wrote: > > On Thu 2019-04-04 11:55:27, Dmitry Torokhov wrote: > > On Thu, Apr 4, 2019 at 11:41 AM Nick Crews wrote: > > > > > > On Thu, Apr 4, 2019 at 11:43 AM Dmitry Torokhov wrote: > > > > > > > > On Thu, Apr 4, 2019 at 10:36 AM Guenter Roeck wrote: > > > > > > > > > > On Thu, Apr 4, 2019 at 10:11 AM Nick Crews wrote: > > > > > > > > > > > > We want all backlights for the system keyboard to > > > > > > use a common name, so the name "platform::kbd_backlight" > > > > > > would be better than the current "chromeos::kbd_backlight" > > > > > > name. Normally this wouldn't be worth changing, but the new > > > > > > Wilco keyboard backlight driver uses the "platform" name. > > > > > > We want to make it so all Chrome OS devices are consistent, > > > > > > so we'll change the name here too. > > > > > > > > > > > > > > > > Wondering - who is the "we" you are talking about ? > > > > > > You're right, I should have been more precise. > > > I was referring to Pavel, Enric, and myself. Pavel had this opinion here: > > > https://lkml.org/lkml/2019/4/4/1040. I don't know what Pavel meant by "we" > > > in that comment, but I would guess that could mean the other LED maintainers > > > as well? I talked with Enric 1:1 and he didn't see the problem with changing it, > > > though perhaps he was only considering our use of the LED via powerd, > > > and not users in general. I'm guessing Pavel's and Enric's meanings though, > > > excuse me if I am misinterpreting. > > > > > > > > > > > This also has a potential of breaking existing setups if somebody did > > > > happen to match on entire name instead of suffix. Such changes have to > > > > be considered very carefully; at this point I am against of doing > > > > this. > > > > > > Would it make sense to keep the old name as is, and only make the new > > > Wilco name begin with "platform:"? What would you think is best? > > > > Given that we do not have a single instance of platform::kbd_backlight > > in kernel at this time I have no idea why Pavel is trying to push this > > for Wilco driver. > > See the documentation in the email I sent few seconds ago. I hope it > explains my reasoning, if not, I'll explain it. Yes, I see the doc and I do not think I agree with it. If you look at the LED docs you will see: LED Device Naming ================= Is currently of the form: "devicename:colour:function" It is *function* and maybe color that userspace is interested in, and here we have proper standardization in form of "kbd_backlight". Device name is, well, device name. It should uniquely identify the device led is attached to, but otherwise is rarely interesting. If userspace is really concerned what kind of keyboard backlight it is it should investigate parent device(s) and see what they end up with. Thanks. -- Dmitry