Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751293AbdFEVQO (ORCPT ); Mon, 5 Jun 2017 17:16:14 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36365 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbdFEVQM (ORCPT ); Mon, 5 Jun 2017 17:16:12 -0400 Date: Mon, 5 Jun 2017 23:16:09 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: fenglinw@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Purdie , Rob Herring , Mark Rutland , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, subbaram@quicinc.com, aghayal@qti.qualcomm.com, wruan@quicinc.com, kgunda@qti.qualcomm.com Subject: Re: [PATCH V2 1/2] leds: leds-qti-rgb: Add LED driver for QTI TRI_LED module Message-ID: <20170605211609.GA9035@amd> References: <20170601072723.12760-1-fenglinw@codeaurora.org> <8058ed85-5a64-8dc3-99ea-1ad8128e043d@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline In-Reply-To: <8058ed85-5a64-8dc3-99ea-1ad8128e043d@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1446 Lines: 48 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Generally I came to a conclusion that it will be best to register > additional LED RGB class device in an addition to three LED class > devices representing each color. In order to avoid hard to solve > locking problems I propose to allow for simultaneous access to LED > class devices and LED RGB class device gathering them. >=20 > All in all, currently we also don't give an exclusive access to > a particular LED class device, which always can lead to overwriting > current brightness by another process. These issues must be arbitrated > by user space. >=20 > I propose that LED RGB class device exposed following files: >=20 > - red_brightness > - green_brightness > - blue_brightness > - latch_color Actually, I'd just do single file, "rgb_brightness" with 3 values. Overhead of writing 3 values is pretty much 0. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --FCuugMFkClbJLl1L Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlk1yhkACgkQMOfwapXb+vIAwACgjhajnN742qdDzvMP2Pq4zDbZ i6YAn2sKMgy6i+eD1ReaFXeJK3+5p3mt =l7qr -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L--