Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1658127imu; Sat, 5 Jan 2019 04:17:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN5lWaxlIiahO9cwHE/kpi4s336csnCA6KtDcHLR4T8aFvwxhNV6gNqtpGaq9lZcUc6JsGhv X-Received: by 2002:a17:902:298a:: with SMTP id h10mr54924182plb.312.1546690662489; Sat, 05 Jan 2019 04:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546690662; cv=none; d=google.com; s=arc-20160816; b=FgK7ZOvsf9QrsvSyMROS4r4G0XmeAgdwTewz9Kt5IqoR7Sip6kCb2y3W1QGvKL/fen e/OzN9DcE2MQu9rqiZwD9dfB+rKKsKUQMVD9fBHN900bY8d+CsWcowclFW7pf19HcBy1 fnqj6085Zt3h1dRaDDz9VZ+iQ+YRo9PJcHAuUxOlBvHPgHv/RM2+NmPiigdWz6q3bHcc J3gu+kH1v1VPd36PZ+nwwpDQ4iLp6uJ7OSb7MLny/5pCqPatCVmIgdQvX67JEGGu5Q0s zNdz5Orq4PIybDxswR2/UD960B0H9oIApBB+hiucoIERrZ4XLj/KWslzRp4fHoWpUSEm 5aAA== 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=YgOCaScMyS179dYbYLf7NlPr/N+JginK2XnVCgeGpK4=; b=hweN8EYapRY5GDROYWrcFHGDi/brU3AtWmsA8jckWM+01LkIGYXZcfwDOETLodYkEa MqHfNtvA/pyG1ZXRRcLC6yBoYe2Q1iNcuQpMb7HlXlq8XO736Xq/on7NQeKs5tEpMJf4 OkxyMA02UIW62PZ5glO2LvSkOZMrGQ7gVpcXqtp6/gb472UjztYKFuveh6mwoZ9PlPlH snbQuGWzLUrSzb6DIxXL8RrLoLVCGLR33l21cxOhwyYpB+h2kLLY2NvgIyWV7Qf2yJ3G uhL4PGd+UVQz54mh0b447sEOLfsayor26yxS+TdnaVtAWEL8IBabBP96S7AAjCRKbhh5 DTdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FFNKa+A1; 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 bj11si14243655plb.21.2019.01.05.04.17.26; Sat, 05 Jan 2019 04:17:42 -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=FFNKa+A1; 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 S1726233AbfAEMQS (ORCPT + 99 others); Sat, 5 Jan 2019 07:16:18 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46361 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbfAEMQS (ORCPT ); Sat, 5 Jan 2019 07:16:18 -0500 Received: by mail-lj1-f196.google.com with SMTP id v15-v6so34508753ljh.13; Sat, 05 Jan 2019 04:16:16 -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=YgOCaScMyS179dYbYLf7NlPr/N+JginK2XnVCgeGpK4=; b=FFNKa+A14Ej/0BL7uXofITrh0O6QIHCifgekKr07kF0SHEMPcIH132tEmQ4H4pguXL ZamG4I+FA4nXe7caIBEUkbF9l8IyqNvZYgb2BTzHvv4Irv/vSQzl4vR5nBU8rNvL66As NhdV4YdPdgsP4+U1Nd8s4xY5ZSNBAZREqmuM7x+x0p2QySnOm6xn7GygPjTnkvBUe72R fHXF5zAZNMlMbPg2RzSGQVLjAjh/1P61B0oghdfC7Uf9PWcYgJH2m2A1YMAwZwkgrZ42 nN6QjKEQgGZSJZcd8xHJf0LLiVV5xNc+9H7OMoUjLn1FJug3kF2mhIJTD+q1oIrIqiz6 Pt8g== 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=YgOCaScMyS179dYbYLf7NlPr/N+JginK2XnVCgeGpK4=; b=WDDAr5V1qS8C8tCJIXDgHPSWeYrgLQgDcoqaQl0geCvHcikzAuKQbvi5/gQtQCwh62 aGQ7Fkmsufr7vkHkfn5CiIBMlndfQIF4VWAQYuNUoFqdqhNdcHe6ma33uH/4IUsFPZyD TBJjtBo2sDEc0TWOkAH1+KXhlf6EuhYl7Ea0eLHs/74OwyY13y7oLnRA/eXWtJ/AaRLK 5IjMLqVGEOBN8CvT9yW9tl1++/do2/+N323C3pI3b8awhjhEqiknxvzRUInxSv7jl1di 5WwJKkQQOTnGEeYMH7HXFZZ3X1rCl+xRPtaKcgucz8eZmIoZtckAq7WzpEmgNpiT+53t a5Lw== X-Gm-Message-State: AJcUukfcqQtNOlNMqDhKaTAWpFEMmo0W6ug7e8tqs0b3r27o73DD2D+F /nc8UqXUwDkxq3RWBKw95ZzRjY18 X-Received: by 2002:a2e:95c6:: with SMTP id y6-v6mr9738057ljh.59.1546690575039; Sat, 05 Jan 2019 04:16:15 -0800 (PST) Received: from [192.168.1.18] (ciw155.neoplus.adsl.tpnet.pl. [83.31.46.155]) by smtp.gmail.com with ESMTPSA id m4-v6sm12602576ljb.58.2019.01.05.04.16.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jan 2019 04:16:14 -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: <54f28115-0a7d-8e9c-3bec-6e91fb3981ec@gmail.com> <986b5105-2fdb-bd25-7c8a-ca8fd1ade821@gmail.com> <7f205102-e854-f1cb-cc03-1307d1cddc87@gmail.com> <20190104201256.GA2931@amd> <20190104220726.GA12395@amd> From: Jacek Anaszewski Message-ID: <4cf79414-578e-eea7-4f46-fc8789206988@gmail.com> Date: Sat, 5 Jan 2019 13:16:11 +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: <20190104220726.GA12395@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 Hi Pavel, On 1/4/19 11:07 PM, Pavel Machek wrote: > Hi! > >> 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? > > So they have hardware feature that allows control of 3 LEDs at the > same time, right? > > Actually turris routers (IIRC) have similar feature, but shared for > all their LEDs. > > I'd suggest simply ignoring that feature for now :-). Why not use brightness file for that? > We will need to solve RGB leds somehow, hopefully this is solved with > it. When? With this attitude we will procrastinate it forever. It's been almost 3 years since first HSV patches. I proposed rough design of LED RGB class interface in [0]. If you find it totally flawed, then please spot the problems. If not, let's improve it and implement. [0] https://lkml.org/lkml/2019/1/3/550 -- Best regards, Jacek Anaszewski