Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1540466yba; Thu, 4 Apr 2019 12:53:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTd+qiRj+xMicePuiYNr8qxzHkCXfHpUDzW4vz5+5PFbyqNx/Y6PgIgrE09gM5GnaKtv7I X-Received: by 2002:a65:5286:: with SMTP id y6mr7656026pgp.79.1554407608090; Thu, 04 Apr 2019 12:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554407608; cv=none; d=google.com; s=arc-20160816; b=R39sNvDkgzMOgM17wMVhoAaDRadQYZRksS40HmvNbvLQ+CyvKr84PtvMsFvBmQDMmu mOXzmsP1lPO9KO4nvxeW28dcKuMd+0kIna9FgaixZFCkrpEswqGe6eDNqlD0XS7pzCe3 y5ywPUBnLDpgA9t3XBeb8+4Mp567THn46mlfDmGuck8l90yCFQJHSAWqGyCqC5af9hRX FGihd/MhZR3bdKRciXtWnY3mlBm7iwk/C8sT1ooZN5d/em4V2uYsHP+4b7IPUMSNXiCU R6RDMgp2q2LtYAaRsHJhf5krMjdXGOG1ZmP6uPbcvlgnoSonu4a5LxTl04F6BXnVEeVt WMVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6Q2Q+qWGm7f96hZNX4vu/ncQTTlSvnr/ofwNVgSrJSo=; b=Uz5bqkGlOLebXROWp+WzU/MUrBkpzAIuoIClvQSzDm+Yoyy2rLbkKQBCmWkoSjtWeS hNjuZi8+G07+S2NMhWLEnQBgMX19VTLrEN5oFMxXx72dKrofXlvCqCHcOWKp5bcxmT1H jl6DYpyhG+8R94Qb37HqfLRgKa+d6dFkuFFI8HFZm0unZ3y7BWIj5lRjOjRJKk/ZtceL vZlUGgfLLfA4U2/m+CoU6RmXiYR58y2WY7r4mJu0XAOBpppXDP9ANdmcWPpL3Cxhohkx O/JlgtvL0pL6z7NAlTQadUrT6fRoVG7ocAf3eDy5AmGgJp8vVwYcmC8lAxblG1mXP1CR w1oA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si8109630plt.57.2019.04.04.12.53.12; Thu, 04 Apr 2019 12:53:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730442AbfDDTwM (ORCPT + 99 others); Thu, 4 Apr 2019 15:52:12 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:33106 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728743AbfDDTwL (ORCPT ); Thu, 4 Apr 2019 15:52:11 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id BD3CD8029F; Thu, 4 Apr 2019 21:51:59 +0200 (CEST) Date: Thu, 4 Apr 2019 21:52:10 +0200 From: Pavel Machek To: Nick Crews Cc: enric.balletbo@collabora.com, bleung@chromium.org, linux-leds@vger.kernel.org, jacek.anaszewski@gmail.com, alexandre.belloni@bootlin.com, a.zummo@towertech.it, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, dlaurie@chromium.org, sjg@google.com, groeck@google.com, dtor@google.com Subject: Re: [PATCH v5 2/3] platform/chrome: Add Wilco EC keyboard backlight LEDs support Message-ID: <20190404195210.GC29984@amd> References: <20190404171007.160878-1-ncrews@chromium.org> <20190404171007.160878-2-ncrews@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/Uq4LBwYP4y1W6pO" Content-Disposition: inline In-Reply-To: <20190404171007.160878-2-ncrews@chromium.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/Uq4LBwYP4y1W6pO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-04-04 11:10:08, Nick Crews wrote: > 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/platform::kbd_backlight. This driver is modeled > after the standard Chrome OS keyboard backlight driver at > drivers/platform/chrome/cros_kbd_led_backlight.c >=20 > Some Wilco devices do not support a keyboard backlight. This > is checked via wilco_ec_keyboard_leds_exist() in the core driver, > and a platform_device will only be registered by the core if > a backlight is supported. >=20 > After an EC reset the backlight could be in a non-PWM mode. > Earlier in the boot sequence the BIOS should send a command to > the EC to set the brightness, so things **should** be set up, > but we double check in probe() as we query the initial brightness. > If not set up, then set the brightness to 0. >=20 > Since the EC will never change the backlight level of its own accord, > we don't need to implement a brightness_get() method. =2E.. > Signed-off-by: Nick Crews > Acked-by: Jacek Anaszewski Acked-by: Pavel Machek --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --/Uq4LBwYP4y1W6pO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlymYGoACgkQMOfwapXb+vLYUgCgsPgTBohHm4ztKgBYMtWoJma0 VRkAoI4/89nZFkwhMdJlDvcCK+hHhMyL =c7Go -----END PGP SIGNATURE----- --/Uq4LBwYP4y1W6pO--