Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp976973imu; Thu, 20 Dec 2018 08:12:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/WnBdRqdYyvrz37Uxv5Y+nfoZYJP57MUfcmqvoKFEqQBdvdhW3bQgmRFrgVqBtdrqMMiSl7 X-Received: by 2002:a17:902:bb05:: with SMTP id l5mr25262011pls.230.1545322348604; Thu, 20 Dec 2018 08:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545322348; cv=none; d=google.com; s=arc-20160816; b=eTYSwf+LFDGD0G3sbfw0Iwwuhia6gzjyFT2OpnjEk7Ftzv/FT5BmG/RrqIvRMwBF3F rwIHL3Jxg/ksJ4ugHiFcJHF1lRQkRiZ+2LklsdscOIkPAghQAeOnvOIlvErRbp3oBGex RaHI15tS6T6DuEHHj5UYEcVd/Jlkci6Ep78nsdVv5TIzJpy1VLbtYEq23xbn+Ty3H5QG eX7u5x5b3eIZrpYUpAWUkCiUbPYDnYdIMvvnSQQR58kzjKVM0KVYhwhsgOOuGVTFen2i hkjflzH8RVbBYiHABwLRglPdDhwhLAcLhKcN3d1Z3bdGqwr0F+7Rms0Kh97nOPNTRGhZ EORQ== 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=JWSGjMbkUmwdxkMAq1a+c2I7ain33LQm86W/1CINhkc=; b=mqnpBuTie7GmjfgqhApa5Auw+fCxQ73AnB6wrmralWuKTufTmATUy6jC25mzHuwqx0 GII0QWU3JSELFDALUFleRByDKWfaYrXxCr7rWGJfbo/t8pWVjFXlDuBRqVAJhHLkFYx+ CLij2YeMYECk92i/x7vpyteSzIvm/Fryb2h+G1ex02Nt6kFPAPEHoIY7NXJELptRenBN 40f7vjh8DI1jKEKvhnWoCBly41T885dLiPeb2P7gnay4PiCLSUNFcmnbrOPCsFznIjso 7P7V6pF9dViE3G4f4r7MHxDYDYaZ1Sto1TpF+sxxtHC8hmPebAAgH32xwGBY29LSS8ch RZ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=A+3Piv5h; 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 v5si18859986plg.318.2018.12.20.08.12.13; Thu, 20 Dec 2018 08:12:28 -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=A+3Piv5h; 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 S2387446AbeLTODf (ORCPT + 99 others); Thu, 20 Dec 2018 09:03:35 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:58224 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732864AbeLTODe (ORCPT ); Thu, 20 Dec 2018 09:03:34 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id wBKE3VWe022372; Thu, 20 Dec 2018 08:03:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1545314611; bh=JWSGjMbkUmwdxkMAq1a+c2I7ain33LQm86W/1CINhkc=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=A+3Piv5hLI5F8NvJDjLMiiExQxlRn+cO3Byaec0Mk7dfnWY16/i1aSd2VHHIaLLa8 fPqHsdZD31vmlIECIJXdp/in/fFHPLGcrPzsSiwKKZ0WpYg9jzjapWiK9z6i2MZMU4 m8l/4BAWACn8noSNu3kC8pub+/oCr5eArV9oZsvg= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wBKE3V45057650 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 20 Dec 2018 08:03:31 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 20 Dec 2018 08:03:31 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) 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, 20 Dec 2018 08:03:31 -0600 Received: from [172.22.89.160] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wBKE3U8I028828; Thu, 20 Dec 2018 08:03:30 -0600 Subject: Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver To: Pavel Machek CC: , , kernel list References: <20181219162626.12297-3-dmurphy@ti.com> <20181219193455.GA21159@amd> <8740cfd6-a6b5-ad27-313b-984a9febf18a@ti.com> <20181219201047.GA23448@amd> <54f28115-0a7d-8e9c-3bec-6e91fb3981ec@gmail.com> <20181219220326.GA28244@amd> <20181219222737.GB30496@amd> <20181220090612.GA21972@amd> From: Dan Murphy Message-ID: <8bc77441-eb22-8748-b00b-59d403794c24@ti.com> Date: Thu, 20 Dec 2018 08:03:29 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181220090612.GA21972@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 On 12/20/2018 03:06 AM, Pavel Machek wrote: > Hi! > >>> Anyway, if your 36 channels can be set independently, I believe you >>> just want them to export as 36 LEDs. >> >> I am not sure that is what the "customers" would want to have to set 36 different nodes or even declare those 36 nodes. >> That is 36 independent user space to kernel space calls that are very expensive just to set a LED color and brightness. >> > > No, 36 independend calls to kernel space are not that expensive. But they are time consuming. Also note that even if I set the OUTX color mix register the LEDX brightness register controls the output intensity. So if the brightness is 0x0 and the Mix register is 0xff then the LED is still off. I am sticking with the driver as is. I think this is a better representation of the part and its capability then presenting x number of sysfs nodes that will have no affect on the LED if set until the corresponding brightness register is not set properly. This will also keep the device tree entries down to a minimum. The LEDx brightness register actually controls the output and there are only 7 of these. Dan > > Pavel > -- ------------------ Dan Murphy