Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1652459yba; Thu, 4 Apr 2019 15:25:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyR828J6SpTCtCMmobSWTCfAdp7CgfsYNVMPXhC5vodo/HAZHmOixb4Y4Y8973lS2sS6vcN X-Received: by 2002:a17:902:b60d:: with SMTP id b13mr9205528pls.100.1554416722257; Thu, 04 Apr 2019 15:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554416722; cv=none; d=google.com; s=arc-20160816; b=PhBTuF/E9t7zr5VaL0x3Uii9REZhND/shSpaP8F6GsUhPzA3u/5ThRT2RQgUhUWPQw tab9S7CWk8l7dgNtn9nkTeziEmn4gXAJXf/6SsM+qVIsywnECWzQ5j8KAO7T20iTCZR9 ojkJoRQeVOf5U0Ru2y+Uam086B7frzryDefnhpWTmtCKclAZ7MRxjf0bGsYVHOJtA7St v3ea9PNTBZMxw8PVtVPD9+IicL+mMMR7M2nYBsQoL44AN41Jegk+gqOacSApvHJVVSps KCCxd67mOLHgDrpDT6v2PXRtA4ODzE0kIo6d6FJ+2rJqSmqREffaMV4XRi2vd5C+rCUi uVNw== 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=eYqmvWtL2dBFReY5T53bjMy7K/Ka+ZEzCOL2OVrFB08=; b=R/NiqfQ55TnuELoRqaP6IMzDWrn9ZGRP43qGPva/FB/O/NbgOyL/KGizQDUzCj4CNh R3fZh9zZx9J2tRgYiEi9psS669m1X7xqqmlltmzGjx4xaElfcIn9YKyqP5X/VdOp8Ui1 G+pJ68vGA09E+pAHdA/QWbRv3KZmuz4gsHpWbAOk1ujO6pkF8g9586kavHbeCKA+/NmX gz2bMg7VnZNMHCOc0cJUE3Y4OSFyVtAFjIiO5phs/016dkddj9Cr4O8UGWW+DkPC0j3N CEWEERYcwxAw8Q4nbRKM1wCsgf2CyVImGVO0Jo5x2IX3kw5o8N9nFMsLelJNIkQTYvsn USXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KdeOJ7Zk; 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 f34si17908923plf.343.2019.04.04.15.25.07; Thu, 04 Apr 2019 15:25:22 -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=KdeOJ7Zk; 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 S1730644AbfDDUNt (ORCPT + 99 others); Thu, 4 Apr 2019 16:13:49 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:35953 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728934AbfDDUNs (ORCPT ); Thu, 4 Apr 2019 16:13:48 -0400 Received: by mail-lj1-f195.google.com with SMTP id r24so3251584ljg.3 for ; Thu, 04 Apr 2019 13:13:46 -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=eYqmvWtL2dBFReY5T53bjMy7K/Ka+ZEzCOL2OVrFB08=; b=KdeOJ7ZkPcCwS03a2RdwMO7t9na8oge+X+usfZw/BjBMiDttJD8QrM4s0/ECeaVImc PQ2OmyLrAkfTbsL8Yjt9+3WVwJJkCjxeAsVgUUPJ7B6WD8700Z3pqtXZi2RvnrxvVPjF XKKvvAlgstqpk1tEd67bNKdposPNR6lci8CmtKJesl49XjpcZgMfJ9ULIj7AnOGCINqM MjJ0Dg15NYUF/NCksUnWgtxWwvsPqWCREsyFXr8x3/cFXZ8N39bNNXaqrjWNV7zJ+nQf rZxaxR6kc6LY/YzVnESvoJkFzlh1R6F8N1AM0uLO/JpO8hqlXc1e/kKALfeGIKEJwX69 l+Vw== 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=eYqmvWtL2dBFReY5T53bjMy7K/Ka+ZEzCOL2OVrFB08=; b=JxyvpcpJOgB7TgVmxdrfcRI4ZAw0u1k5wxOdF/yTilLcHCFCAz+sdOham0b6+gaw09 4iMtjvngyJlssNlRLHhZyJJDwajvV0xIUXSm4rSK9iitiNq8eRP6KDmcFcyhfADHXxUD oYQ89ZmE5iR4dVjdips82xiRS4pkJ+p+ezsMPeJ1Yh2Kj6yM99+GHqV48orfCV6pcq3z cQ1bCN5W1yW22egInIE/v6lWG+jFKsKQU7KrqG+H/5SJexOoUFF/8UP51iAyIekxwyEM ysWDYC492VqWnlW7g1/xMcF44P73sf4TeCjV0xhGWz+ALSuDHLHtkpWxzum88h9WQkR2 Bd4g== X-Gm-Message-State: APjAAAWFiugKaKDRiaRdkno/K60C9KBw1DTFBcCNRLXtByprPRRcGxgr AzcMbZIlB1UiYf7OtFjqBBN97bXy4Y5w6iPq3d+CcQ== X-Received: by 2002:a2e:219:: with SMTP id 25mr4544058ljc.34.1554408825519; Thu, 04 Apr 2019 13:13:45 -0700 (PDT) MIME-Version: 1.0 References: <20190404171007.160878-1-ncrews@chromium.org> <20190404171007.160878-3-ncrews@chromium.org> <20190404185919.GB27340@amd> <20190404191931.GA29984@amd> <20190404200658.GD29984@amd> In-Reply-To: <20190404200658.GD29984@amd> From: Dmitry Torokhov Date: Thu, 4 Apr 2019 13:13:34 -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 1:06 PM Pavel Machek wrote: > > Hi! > > > > > 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. > > > > > > That does not work. Userspace wants to know if it is internal keyboard > > > or USB keyboard, not what kind of i2c controller the LED is connected > > > to. > > > > Why does userspace want to know it? > > For example to turn off backlight on internal keyboard when the lid is closed. Would you not want to turn off external as well? And what to do if internal keyboard is not platform but USB? Like Google "Whiskers"? (I am not sure why you decided to drop my mention of internal USB keyboards completely off your reply). > > > > grep for platform::mic_mute . > > > > > > (And platform is even pretty good match for how the LED is connected > > > in your case). > > > > Until we get a secondary interface that is also "platform"... > > How would that happen? It won't happen on Wilco, but you can't imagine that several blocks get reused in the same device and they end up clashing? Thanks. -- Dmitry