Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1125756imu; Fri, 4 Jan 2019 13:40:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN5LDbT82AhgrdJMtzdhuyAZFWYmm6S+tNsjdXPEl/Wg3y7EECFaClBgGYlXLuqTexE5QfAC X-Received: by 2002:a17:902:6b46:: with SMTP id g6mr52327275plt.21.1546638033917; Fri, 04 Jan 2019 13:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546638033; cv=none; d=google.com; s=arc-20160816; b=Z6l+XfZLmfb3ytAfjD+4oZzZVDo57eA7TtG0IVZsKGmVoUznDs253MqV8jWaOBcxjn 1JIfmBW+UvEE1rYF7M/ZUs92N7DglnPKJodTykrLx+RelXfgOodaw1mXV8OG78C9WjVd hySCM4NPNR0QAQlhxRUxnTRdaQiYrdzb/3nUMMTJt7J2gHem69nWKBshI4CP2U4wdn30 bhO/3/U3acxk6c3KhyN8XTQ+Ub4fEHBsoYX9kIrKSRTfxYa/E+aYyguCmGY7Bz9wjoB9 FCG0JFDlhtf8RtUY+8fqo7TSWNR17QrRrxfi/5ukpYW9A0ZcjAUKr4FDfgaVfX8Od+Jg Kf4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=i/NSCxaveOuhHWFSvU56Hrhcl32v91VeK17YtFmf+iI=; b=j7rbGNtT2Z93bUDqDrqBr0kA+oB3wtvTrRL8OJuCuK9H1ixgDqVe6ojwSr7dFB0Gfo 1/fjpkaHCwYZ3u4X+aIsJ24F6Bi3etzODLswezzrJ6WhatxktOdd2ctLET1slOZFV/6G nwIehwBIqEykRYnvXRVx8OmC9yc730rVMIQYz0kp+JIszrvCjoxdg2K/Xis7EySzPcGi 3pEGjbaTmoLM8GUq4nf30Db/dYK5AWOf6SrK7kzBAbp3iyJIH9SdVE6BgWtu4w8rBjpZ YL4qe0TJyKKDXcuqoKBxCNHCCUeBSqS+3HwxZ4+Odr3+ptXIdm965Y033tpkI7FHd/ju T4vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OKn8VhNl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si19643295pgt.213.2019.01.04.13.40.17; Fri, 04 Jan 2019 13:40:33 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=OKn8VhNl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726257AbfADViF (ORCPT + 99 others); Fri, 4 Jan 2019 16:38:05 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46745 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726094AbfADViE (ORCPT ); Fri, 4 Jan 2019 16:38:04 -0500 Received: by mail-lj1-f194.google.com with SMTP id v15-v6so33536956ljh.13; Fri, 04 Jan 2019 13:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=i/NSCxaveOuhHWFSvU56Hrhcl32v91VeK17YtFmf+iI=; b=OKn8VhNlhSs1cCv0r5RGV/quCG0dPoXqhtQueAsWi4SegVGCZE3SoO5H0m4F+64Bzf zB/FVB8gLyVx9rTVHcReu0ngkKQ9CT7zObzzo0Yv7o8vPgQgXDzWQqhzmnkTah0jHXzL NwvnHYpUaLXJta2wkNJ+0PUR/8r/i78EO5oNQFQGQ6OlHcwVxX+E16fK4sPzxaduuIMO HcpqpPsSrxHfT8gR+Ua7Z+S2vcJlHk7sUNyBKNEEZt2cI8psRsNKuo5cAVNAV+kRtN8d ZIoQxi6Wu35MEwOd0h0qm+0hJWkOWKEfsJ5gwQbK8ghj5i0rGv2jgi02t4H8iJbEdgTv +qiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=i/NSCxaveOuhHWFSvU56Hrhcl32v91VeK17YtFmf+iI=; b=esAR988nkHC8bn3x20NK43y27Tt3+G+fMaLAqY+JqDrNXiyqOxg601QhZYtY6yJhrr x/HNacngT6pL2fF+POPBPYtQo7kJlOk1VENmRyZDupVocDZ1fm6FvT9oB3pxdnhpnsc5 QHGh7Qg8+Rt9m6vyrqcFFn03cedZiUYcBuY/Gj6NOGjbD92WrGbUonF5SegfrLi6bH/d UIQ9J0pAaTlOavk58IhFvmEbVhFM082eUfKtfLNP0PPxOhKYXMcZ2/im52Xwj8xv1Ozf mAF7/Wh6Kc29JnyvSX8gpHz43wpxgnBUPTJq+4YKW5vHNZDaA4QyFwvAWQVQQHMbTIDF 4uOg== X-Gm-Message-State: AJcUukcHCApYNmpmIGYE77s9iJLDc+URJhJ1aBZ9Jss1wKbgP03FL3zV R3OSNW6FPx0fMRQPLPfIX91xaQnM X-Received: by 2002:a2e:4942:: with SMTP id b2-v6mr8154233ljd.168.1546637881849; Fri, 04 Jan 2019 13:38:01 -0800 (PST) Received: from [192.168.1.18] (bgt246.neoplus.adsl.tpnet.pl. [83.28.83.246]) by smtp.gmail.com with ESMTPSA id r69sm11588556lfi.15.2019.01.04.13.38.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 13:38:01 -0800 (PST) Subject: Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver To: Pavel Machek Cc: =?UTF-8?B?VmVzYSBKw6TDpHNrZWzDpGluZW4=?= , Dan Murphy , robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org References: <8740cfd6-a6b5-ad27-313b-984a9febf18a@ti.com> <20181219201047.GA23448@amd> <54f28115-0a7d-8e9c-3bec-6e91fb3981ec@gmail.com> <986b5105-2fdb-bd25-7c8a-ca8fd1ade821@gmail.com> <7f205102-e854-f1cb-cc03-1307d1cddc87@gmail.com> <20190104201256.GA2931@amd> From: Jacek Anaszewski Message-ID: Date: Fri, 4 Jan 2019 22:37:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190104201256.GA2931@amd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/4/19 9:12 PM, Pavel Machek wrote: > Hi! > >>> I suppose if one would just make it an array of values (separated by >>> space) and then one file with string array of color element names and on >>> file with maximum value array it could be within those words. >>> >>> The it would be something like: >>> >>> $ echo "23 54 32" > color >> >> Go ahead, but first convince Pavel, and then Greg :-) >> >> I'd personally would not have much against, especially that the >> list of values will not grow for that one like in case of old patch set >> [0] where Pavel and Greg thwarted my similar attempt. > > Oh, you can get this past Pavel (and probably Greg) -- if you have a > good reason. Performance is _not_ a good reason. You don't need to > change LED color 50000 times a second. We would need to do some profiling here to check if the problem exists. But, aside from that hypothetic issue, we need a solution for LEDn_BRIGHTNESS feature of lp5024, i.e. setting color intensity via a single register write. How would you propose to address that? > If you can demonstrate a reasonable design, where user selects color > from well-known RGB pallete and either kernel or library+kernel acts > to set that color on the LED, we can talk. > > When user asks for white, it has to be white. Exact color temperature > does not matter. When user asks for pink, it has to be pink. Again, > exact color does not matter; different monitors display slightly > different colors, too -- Best regards, Jacek Anaszewski