Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1601529yba; Thu, 4 Apr 2019 14:12:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLJrtm7EXtOIoQRIwqMRH2DdnZ7aaFKXOTPcKZB5MEfbZCbZ1y7DNxpBIJyOkBhUdBrW45 X-Received: by 2002:a17:902:765:: with SMTP id 92mr8468472pli.95.1554412349902; Thu, 04 Apr 2019 14:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554412349; cv=none; d=google.com; s=arc-20160816; b=m+KNm2CVsuRW8vc1sxNXbDkctV8bdlYaGsY+8d+nTNuVvhOXUqZoHWsIRastcXUw5h WTfZyDvssVnOH1UswIyzfs8eSXw1ejMVOKQfYP6n0hS2xorOJ9bm7Ht0g6IxwbW9vFUE 0fh2xsvc2nxagpN0KrWTIE7DG21AAAOinCIM3+nQM89G1dpYJWe/VsHDYF4LmpyKhsrx FHmvWCsgjTAkrbd6io9Z5qPHYQwdAxsNgUjbqAl2ZhpweXeaAW1ojXcJFzcoM/F1CY+b GC6FX89SlugsQqHk4uwhp1ZF2QP2Y0faIwJ9y90h1WRR4Fkd21AJ+u9TcgvsNsLrO2bY 9xBQ== 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=LDB19/flcBLRE+mVvIbsKM280+QDIORWb0KeJBezj7Q=; b=Vc1Fca0H5d6nwb84XT6xQxCTk/7w8n4HhG+dpVKEIkFl9AuJa2nBtfGYf3pECGCq9u QTb//b2kSAmTkk+/+6ULauZfwJ3sSOOUQepTe5xusfDD2lt5nFuBjW1Lop8Pzmmgc/QM q1hbW/DddsZYXzv9pzLvuxA0ZRqFo6RwyHopO8VBf/bllzCCvM9bDIj2H8bGUbQJRcJG mZOR4Co9be4mBThe81yfxF+K7BUTJpfBLW2nj1co7qt7AzRKQYt4Q11rDXC1YQMnT9U8 N+Oo0bxn4le96rsS4PLom7+zJR+gkQB7jPtauwaGgsADEwzbII8W2bGWPVbEoWw9WVkV AUfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=asVSXgG8; 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 x10si14704647plo.422.2019.04.04.14.12.14; Thu, 04 Apr 2019 14:12:29 -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=asVSXgG8; 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 S1730456AbfDDUWq (ORCPT + 99 others); Thu, 4 Apr 2019 16:22:46 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46949 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729547AbfDDUWq (ORCPT ); Thu, 4 Apr 2019 16:22:46 -0400 Received: by mail-lf1-f67.google.com with SMTP id r25so2712969lfn.13 for ; Thu, 04 Apr 2019 13:22:44 -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=LDB19/flcBLRE+mVvIbsKM280+QDIORWb0KeJBezj7Q=; b=asVSXgG866QtHlkNamrkOa2pfr45oWcj+XTF/VoBa7SIwhNRakmemU0v1n+WaXt3j5 ttnoT/sbzwWyiWkes7F5O1RuMTWXzM97mXPwhUGDKu3ytX0+r1Ak2FkK2zbntH7QWaXi /QEx1czjHpNp5HcI7ZjR7z5/hX8e4Dz0T1TGQFzxAkibO1Xnf6Jq93+x3QfJ7vqCfJev JsFybOQ4A19qG4KGDR0G3djHEtOeHwiw4RI3DpApJYJ0ItokqJdS0OHwEBoGLMUn/17v T42NbzcZC0nJWtfMn7du7ZM432qgUjfqh+t1yKsa0HzM5/b+LmFt42bHdz2Fx75rjs7V K7Ow== 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=LDB19/flcBLRE+mVvIbsKM280+QDIORWb0KeJBezj7Q=; b=LduABVyC4ddHdDP4PQI0Nn1GKCOkasYI/SJRo9RD8fOjwVXwg8Gat4xaKuJClJyhL2 HZhvUTPEileD54wN/iaALnr4TI7QTBXJgL2Ij8DkzzO4AAR2O8Iy1Y0W5J+9swUYcdCs GJ1YIXa2CWoHix3L/LFQ8dRQfYUYgEnKw24Oc5qTNAPn2VL6zXAS3nC5CBbd8t4al3Qr +8FDi6X4ZtpFoNt0H/JS7eZt68WujhYc9yHClZj0qRi7T/Xmroky/OjmSv0hBEiRc/uW UOeSXi5CntE7/lphlUtG9JqhYdkeI2wgBqWpodjBE1q3wUQheqhCSeP389trwOBtdEMY pEpw== X-Gm-Message-State: APjAAAVuFrSAjzuJGyP50bR3NijhQgCZR86B/xlXaFkK9mUzqZAoI9HL dp1fwej7iEaDuRK/0+B3+cxLvzzX+NAtvc0xDrGtAA== X-Received: by 2002:a19:ae0a:: with SMTP id f10mr4073594lfc.118.1554409363509; Thu, 04 Apr 2019 13:22:43 -0700 (PDT) MIME-Version: 1.0 References: <20190308203801.57920-1-ncrews@chromium.org> <20190308210843.GA16125@amd> <20190404112415.GB18653@amd> <20190404190326.GC27340@amd> <20190404192331.GB29984@amd> <20190404201103.GE29984@amd> In-Reply-To: <20190404201103.GE29984@amd> From: Dmitry Torokhov Date: Thu, 4 Apr 2019 13:22:32 -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 1:11 PM Pavel Machek wrote: > > On Thu 2019-04-04 13:07:39, Dmitry Torokhov wrote: > > On Thu, Apr 4, 2019 at 12:23 PM Pavel Machek wrote: > > > > > > Hi! > > > > > > > > > > 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. > > > > > > Well, if full name is not interesting, as you argue, why do we have > > > this discussion? > > > > Because I need to understand why you believe that device name for > > kbd_backlight matters, and having wilco::kbd_backlight is a bad idea, > > but, for example, having max77650::kbd_backlight is perfectly fine if > > somebody decided to wire it in this way. > > max77650::kbd_backlight is not fine and we'll try to prevent that in > future. You do not control DTS for systems though. > > We want one name for internal keyboard backlight. What exactly that > name is is not _that_ important, but platform::kbd_backlight seems > like reasonable choice. And I am trying to show that depending on device and product (as in entire computing device) the same driver could be used in multitude of ways and expecting that all devices that can be internal will always have "platform::" prefix is not realistic. It will also fail if you have multiples of devices, as you need unique names, and that is what component in name provides you with. You need smarter userspace to implement policy that is best suited for your product. Maybe you can help it by adding additional properties to LED devices, like we have connection_type in USB ports, to tell whether device is internal or not, but I'd leave the naming alone. Thanks. -- Dmitry