Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3589910img; Mon, 25 Mar 2019 13:25:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQ9/7ZnSkUvRII8VG4+DOlwzzi2zcGZq7gN/LSC7uFbwL9rXiGtkXiEknq+rpscuL48px3 X-Received: by 2002:a17:902:7d81:: with SMTP id a1mr19271443plm.202.1553545530374; Mon, 25 Mar 2019 13:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553545530; cv=none; d=google.com; s=arc-20160816; b=Nh2ZFNY1Znlc6J4+NT3y7e8cO7yFVmMs58+mEleAQ4mXtTMiu2MQG9JpTYmlg8oimA EOvP1m0QDYst53Dt1yQdjUTeXMgMmjY8yfYFOA+LbwyEyJDEuJQl92fs6VPZGlDNSc2e A+CxwT7HbCChz3vXS5lRVWKVjFbwK+vrb/1lZ9KFgRN5I4dyfpjn9GM2wG3YmGIJSa7h ubtYAt5MEdxlLPOJoz4qhOu+g/p+iGlPG2ShDSUy8OrPmynNd7busoQGWGf3PaiDg2RX 5Noff3m1VdjPj5ZTTDuABL1HQoZZxQHTSFWsT8yAX5SGgduZ49IEP8bW/671Sx7EaXMm F1FQ== 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=0qqEdTBCa53HzZOTNKKThV+l9a01PHbQ1KmHoVXZuXQ=; b=mIyjCgmQm5DI9xFgvzNm+LID9xegHm7zIvmYNsfkfFVVPIDz/bWYvNB7Wt0a0p5p4O VxIFLTn/a5CNTC7v5QMYW8TKC0kOd0aNJPhqIRawUiJHz7O6Iy3WQJ378fFtEP3UX5UI r1l/WRgPj6b8azM+/Izdifwlohvcyw7KBb0GibkRLSy6SJ4kTsL01MZuH6z/WW7pzecb v351ZqOBd7/TkEXENgeZmt9azVQ+09PlTOqPreDHHEGROQLPDOzc241tyrEfG1ueiza9 CVtv7C4opZfcTzb20IR/4mTp5IOmNwtu26bhrMbc/b1VC6xFVGxEia0tlfeIDDLTOG6U jBbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UcG0ndZT; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10si14442561pgl.186.2019.03.25.13.25.15; Mon, 25 Mar 2019 13:25:30 -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=@chromium.org header.s=google header.b=UcG0ndZT; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730411AbfCYUYY (ORCPT + 99 others); Mon, 25 Mar 2019 16:24:24 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:39071 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729610AbfCYUYX (ORCPT ); Mon, 25 Mar 2019 16:24:23 -0400 Received: by mail-ot1-f68.google.com with SMTP id f10so9330592otb.6 for ; Mon, 25 Mar 2019 13:24:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0qqEdTBCa53HzZOTNKKThV+l9a01PHbQ1KmHoVXZuXQ=; b=UcG0ndZTLjH1l7Ig3qKmsjzdKKkshlF1n4ZQbheWBm9YeXQB0hoqPNpsRJvdD+YeSr Vy2iNIUsPw3wE86izayielcKoplMIykGVrj6WwVrl+zyvZ8YHfi9S2J8pGFHJJAwSwgH ypBp8AS/zzK/rgORftpPSpIn1hRrfGgHDwxh8= 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=0qqEdTBCa53HzZOTNKKThV+l9a01PHbQ1KmHoVXZuXQ=; b=WZXUeSfhvS5wW5M8MH7ZYBXO9RqdTr0ZEOFXhOf8I7b7G4LGZe0TX9WpAZ04radnuF GxacIlynyuG8ew/QNVbagGa+ulePJ94Mvkc48aEzK/gVYLUEJ2qGUURaDrAPHoFM1GGr N8VIDMI+MCSd09NjDgbYeU+XP+lJt7/rCV13FuebBxnOeqoTR5Uq5JF6gIcPs5O6vSsz pP39YD0CvXTjp/PgMlYcwtQcxA1H0TU89CvCou/Fu9VPObG5zYS7xqShR/CUkdYd1GuD Ekudz/haOcYRhIItSGGcJxGibakFqrT3GTnIyiwc/1FrJ/FwuF5z4LRxBRPRE7AWItTD isRg== X-Gm-Message-State: APjAAAUwVitVxW3e5PIzN/9nDNaSqgf2eKuHn8RAX8MULYesQAe7gh/T 9gutdWo9n2Vz/kvvvSekgyxo2XiFnQc= X-Received: by 2002:a9d:5509:: with SMTP id l9mr18717814oth.195.1553545462533; Mon, 25 Mar 2019 13:24:22 -0700 (PDT) Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com. [209.85.167.181]) by smtp.gmail.com with ESMTPSA id q19sm6544841otf.81.2019.03.25.13.24.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 13:24:21 -0700 (PDT) Received: by mail-oi1-f181.google.com with SMTP id v84so8112252oif.4 for ; Mon, 25 Mar 2019 13:24:21 -0700 (PDT) X-Received: by 2002:aca:c483:: with SMTP id u125mr12388878oif.148.1553545460910; Mon, 25 Mar 2019 13:24:20 -0700 (PDT) MIME-Version: 1.0 References: <20190321221334.240059-3-ncrews@chromium.org> <20190322113509.GE8681@amd> In-Reply-To: From: Nick Crews Date: Mon, 25 Mar 2019 14:24:09 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] platform/chrome: Add Wilco EC keyboard backlight LEDs support To: Pavel Machek Cc: Enric Balletbo i Serra , Benson Leung , linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, linux-kernel , Duncan Laurie , Simon Glass , Guenter Roeck , Dmitry Torokhov , Simon Que 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 Fri, Mar 22, 2019 at 9:49 AM Nick Crews wrote: > > On Fri, Mar 22, 2019 at 5:35 AM Pavel Machek wrote: > > > > Hi! > > > > > 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 > > > > Please make it platform::kbd_backlight . Userland should not need to > > know what wilco is... > > The corresponding device for normal chromeos devices is > "chromeos::kbd_backlight". I wanted to differentiate this device from > that one, so I thought that "wilco" a similar level of specific-ness as > "chromeos". Using "platform" seems too general. The power manager > daemon that controls the backlight just searches for LEDs ending with > "*:kbd_backlight" so it should work for that, and I figured any user just > browsing through sysfs would be able to guess what the LED does. > > This is maybe a question for those who will need to maintain the > Chrome OS system after adding this? Could some more > Chrome OS-specific people chime in on this? I also CC'ed Simon > Que, the author of the original driver (Simon, we are talking about > https://lkml.org/lkml/2019/3/21/999) From talking to Simon, since the interface is the same, I'll just keep the name as "chromeos::kbd_backlight". This makes sense to me too. I'll send out a patch fixing this. > > > > > What is wilco, anyway? > > Wilco is a new Chrome OS device which does not use the same embedded > controller as the rest of the Chrome OS ecosystem. Thus, we need this new > driver because the old one will not be compatible. > > > > > Pavel > > -- > > (english) http://www.livejournal.com/~pavelmachek > > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html