Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7907450ybi; Mon, 22 Jul 2019 23:17:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyE1pyC6b7KAr3kF9tv/Qsc+Pm8XLdNIfz4aJG9/xuC+jzXUBNLmR67IU+ig3ZudVmlHlm8 X-Received: by 2002:a65:4489:: with SMTP id l9mr77302288pgq.207.1563862667133; Mon, 22 Jul 2019 23:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563862667; cv=none; d=google.com; s=arc-20160816; b=jCj1/+erSh00UKoWzAihEBK9q+hPP7zQrHoWNKDewJR7XFneMa7DMsBm7kecIjrRQB rEhLfEDCnnSGIYPT6yDJt6pmZNN/IAUMjvUDvEeneNnu0OHLuoz0EGDy4VfjsPdS7+l6 kdFr62QrDYYH89iHbfRE0tWUWF7Kx3440Go/3I2hHxcfdMwlJya0naRDVGd4GfXlpEJp kycdk606BJ5OcBosuyJ23nPNNg7OUIjT8FcCMDowsobpGXlB6EEZOKre5p4xQo7tY9Fv G8eJhA8HpFVm9ZzoDIgQFBtDduUMX84D5Zy+kR1IzF+aeZb0EypR3T59lz3FvZtzw7GY ubrw== 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=Cj14y+mx1tskrZHDIHUHkyDQGTb9WzgM4ECMMDLxGZw=; b=zPPhyf/4yGakwVQFlMUjPa4vByIdhckyikJ9p2qVZDfRfEL0n8Ffk5GYEwRvWrIBs0 SibcWyNUPZw2+lO6By2w0+CQQV1DGbK/sj8OAB0MvfTYS8pkVHj8Wj4c3ncgP+pmncGp tumlJ9WAIg5Hj59GtsC5rffXL9qdz8v8uOvcS/epLiPJKOeR4S/frG5K0Z4LhxBJUB3s fnSR+SqV/1TBzMbecQPh2UVzva9/mPI1dHLhxymPe+eDk1wH1MEV/3OA20i85M/0/qM0 Z99d2x+OI42287qz2bXhzlRRb5AIQiHLsz8uqafKZli1eeDYtpqAE4LJF4CCy9gRkR7j LAJQ== 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 g8si9635935plt.273.2019.07.22.23.17.31; Mon, 22 Jul 2019 23:17:47 -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 S1730752AbfGVVEK (ORCPT + 99 others); Mon, 22 Jul 2019 17:04:10 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:56026 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729059AbfGVVEK (ORCPT ); Mon, 22 Jul 2019 17:04:10 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 1FA5880410; Mon, 22 Jul 2019 23:03:55 +0200 (CEST) Date: Mon, 22 Jul 2019 23:04:07 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Ezequiel Garcia , kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, sre@kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org, linux-leds@vger.kernel.org, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH] Enable backlight when trigger is activated Message-ID: <20190722210407.GA25617@amd> References: <20190718190849.GA11409@amd> <22d7eca4ad8aa2e73933c4f83c92221ce6e0945a.camel@collabora.com> <20190722075032.GA27524@amd> <6fc6af89-1455-7665-47e7-0568ecd87c9c@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <6fc6af89-1455-7665-47e7-0568ecd87c9c@gmail.com> 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 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >> This looks fishy. > >> > >> Maybe you should use a default-state =3D "keep" instead? (and you'll h= ave > >> to support it in the LED driver). > >> > >> That'll give you proper "don't touch the LED if it was turned on" beha= vior, > >> which is what you seem to want. > >=20 > > Actually no, that's not what I want. LED should go on if the display > > is active, as soon as trigger is activated. > >=20 > > Unfortunately, I have see no good way to tell if the display is > > active (and display is usually active when trigger is activated). >=20 > default-state DT property can be also set to "on" > (see Documentation/devicetree/bindings/leds/common.txt). Ok, thanks for the hint, that could work. (I thought we were using default trigger to set the LED "on"). Now...this gives me option of 0% or 100% brightness, while best would be 10% brightness.... but I guess we can live with that ;-). Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl02JMcACgkQMOfwapXb+vI4ugCeInwKolmtAnBHOQNVsMS09AdN Kr8AnAq4ihyjYP61ghzcLq9l2lbwoALF =guhn -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--