Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2148840imu; Thu, 17 Jan 2019 09:09:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7XPeDyx3S0M3QRql4AFq7wUivWocYuamm/DL+Fc5K1zOXPCd8JvticDoIhiuigUm5M7YY+ X-Received: by 2002:a63:6a05:: with SMTP id f5mr14004577pgc.72.1547744983445; Thu, 17 Jan 2019 09:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547744983; cv=none; d=google.com; s=arc-20160816; b=gx5qn6l7T/GO163rUCTSbZBe1LZPh1edFLEnACXTkdcTiqmiSpsFh7nQdJpzUZEdAR s3ZwxlGgZT/KgjvZUJRJ8qszjt09FzbcV4YSowGSYDjv1kujUvbJjqIBZYE5bcTNqU9N UjEfFoDhJZ+0CR+zvSVw9xZvy8D9/epPeBgMmTFS6lNzzYWu7aXTM0Ri4gT6APtjT7aa 2aZMZmg0tTXLir7OQPSMh6FG7B3//Ezam+H4cHwvMhIeO2tFfrxLzmDshLdaWNHvw1HD 2pHKhQ9Q8x6hrFNORj8fr0u6IsxCJGKV6cjviinRA9wohBTJKjAqs1eyc4WbSLN4LEXX pCQg== 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=djCWpJC0UGwknF/eUj9PjPdjxt6eoD0syV3BsrAw1yM=; b=slqYSr/h2ySWBEqpVFMUIRA/Q6VUMVCtEUvBy/2MSl8lcooIAcBOFW7Bj/dt0Kst4U OkeYuWdODO8xOfhzjnGPlGc+978e+p2V/rmQeIh3qlx9qc/0wFmmaWC98fOJxd/cJBLo BVQ8s13wF8do6oxn+MRMjLfjp+Ew01FKbEbn/IdZV4LKY0hUNtoy4YWumDm8pkKNRxJc E1Vuh1mntLDOzhT5dLRirfNyF8U9sAQyhm0/zi0r9TbIuSgUG9mJ53BhiAm8rrYUmt8H cGDgyvbfs86Ga6bP5l+sWhj9GSQl0fJnKqSJeFmyqdFoGT3DC6BzOWdIt8xWq8V8l5es a2rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=frOO8pkc; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si1986431plo.254.2019.01.17.09.09.16; Thu, 17 Jan 2019 09:09:43 -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=@ti.com header.s=ti-com-17Q1 header.b=frOO8pkc; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726993AbfAQN10 (ORCPT + 99 others); Thu, 17 Jan 2019 08:27:26 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:39258 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbfAQN1Z (ORCPT ); Thu, 17 Jan 2019 08:27:25 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0HDRICS103805; Thu, 17 Jan 2019 07:27:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547731638; bh=djCWpJC0UGwknF/eUj9PjPdjxt6eoD0syV3BsrAw1yM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=frOO8pkcVWPV/twrpxb/LWTLBoD5jVAPdv/OhH6APP2wXwQY9tT/vns1mnfbAkKF9 CmBMNRwnly7zX/ImZxmpPV6Uqh1TW/4AMwj5vn8gY34/GkBOAHD2e550226L7BdBWg r1NAEfRsb0X6kk+dmD00pQRXg8RczOxPHZI9BZfU= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0HDRI5d111524 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 17 Jan 2019 07:27:18 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 17 Jan 2019 07:27:18 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 17 Jan 2019 07:27:18 -0600 Received: from [172.22.123.101] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0HDRIvP021638; Thu, 17 Jan 2019 07:27:18 -0600 Subject: Re: [PATCH v2 2/2] leds: lp50xx: Add the LP50XX family of the RGB LED driver To: Pavel Machek CC: Jacek Anaszewski , , , , , References: <20190114211723.11186-1-dmurphy@ti.com> <20190114211723.11186-2-dmurphy@ti.com> <20190115222223.GA17363@amd> <79394d17-3124-75b2-ccac-dc1046499d14@ti.com> <20190116105537.GA1803@amd> <86299268-3202-814a-134b-04bd2170faab@ti.com> <20190116220401.GA28024@amd> <8c7dde3e-5f3c-80a5-ec57-73ce8e39deef@ti.com> <20190117100651.GB17930@amd> From: Dan Murphy Message-ID: <8def5414-9170-7034-34f9-70e6c71f8161@ti.com> Date: Thu, 17 Jan 2019 07:27:00 -0600 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: <20190117100651.GB17930@amd> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello On 1/17/19 4:06 AM, Pavel Machek wrote: > Hi! > >>>>> You know what? First, submit driver with similar functionality to >>>>> existing RGB drivers, using same interface existing drivers are >>>>> using. When that is accepted, we can talk about extending >>>>> kernel<->user interfaces. >>>>> >>>> >>>> I could do that but then there is no way for users to have any other color but "white" with this driver. >>>> That defeats the purpose of the device itself. >>> >>> No, that is not what I meant. >>> >>> We do have RGB drivers in tree, they just present three separate LEDs >>> -- red, green and blue. I ask you to do the same for initial >>> submission. >>> >> >> For clarification you are asking me to register a LED class per >> output pin? > > Yes. > OK I can do that but I would like to get Jacek to align with this as he suggested creating the code as I submitted based on the review of the devices data sheet. LED class registration per LED module or for the single Banked output. >> As explained before the Master brightness register has absolute control over the output current >> to the LED outputs regardless of the color control setting. >> > > Yes, just set master brightness to 255 and you can ignore it. OK Sounds fine. Will just need to do an init that sets the color register to 0 and brightness to 0 so we don't have a flash. > >>> You'll still be able to set brightness independently on the >>> red/green/blue LEDs... >>> >> >> But which one would control the overall brightness of the cluster? > > You would not have that control in initial version of the patch. > See above on alignment Dan > Pavel > -- ------------------ Dan Murphy