Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1327661yba; Thu, 9 May 2019 14:47:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqz17xwtaE1W4EMjngz+0++moLy5FqZ2fphTKARgkIDoDFNdmes+vA3/+UnJHWlerdUq6vla X-Received: by 2002:a65:5184:: with SMTP id h4mr8760751pgq.109.1557438432163; Thu, 09 May 2019 14:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557438432; cv=none; d=google.com; s=arc-20160816; b=SLn+kMZeCT1V/JeEZ++Kr3noSxk6fQ586PJpWoGqVKBHwtWIdwiq8j7V5t3Hmv27WZ MGvzq4hvCx265J2Vm+YTiECShTCodLKruFqOOKQ2eJOtLm5h26v2VD6wBNNSf52oo/5s 6hdBWwV0lChtORSS3mfimXi9zoQbumoR+iOdwGXMIA4ZxcBFAWicinA7eKbr+o+kOIPj tDS6hrGlkuUB++NYqdcL9lSqQOKmyovv3YT/EJaRYUmhQS1LTn5Ql6TGkt3geoI8da4V /NaoowW51OZRkxi1TPHI2apeMcWn7YoMtKF3YKT2vpRHMoKqocLjI89nF9O1NvRCd/tB PC7Q== 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=Q9Z3Cdxba9fPA3W2vhRBY2VSHgjkNI6BHfKusWm8Mp4=; b=KrFyv0RZM+jPMeXVO464QqpiZF47N1VJxfs8Lkcl8remC/T30C0bA7g7z9gUxItLSs IpbaY//yzYkHxdiR/YsmI2RTLLom0HrLKys/qK3tzsTpm33vqsKgCCArseJL4qQ0W6rL Jsb7E07namAe4IZA8OQ2f46MxpS78xJ0ude/rcRhO1J/taIE7dotaGVzQTqsxDWLvVZs uKP9JbmRj9Ve6QHGG7ACM0F6p0f1SnGbecpOwK+6D8Cyj77Zi8d7bxvaXuX3EsPbrup6 H6Ow7EKeWbzup7WTbAlDMSpl6EtkbTNrZ6/j6M24BZRp+TyUgWwpbHV1/CgazRSNPWuU Ukag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="bmIfRFy/"; 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 go20si4610656plb.149.2019.05.09.14.46.55; Thu, 09 May 2019 14:47:12 -0700 (PDT) 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="bmIfRFy/"; 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 S1726943AbfEIVoc (ORCPT + 99 others); Thu, 9 May 2019 17:44:32 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36514 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbfEIVoc (ORCPT ); Thu, 9 May 2019 17:44:32 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x49LiG3a106503; Thu, 9 May 2019 16:44:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1557438256; bh=Q9Z3Cdxba9fPA3W2vhRBY2VSHgjkNI6BHfKusWm8Mp4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=bmIfRFy/ovPoRVIcnoCf8Y7JxDQqH7kkbi3CNdJjibENrV1yMOGIflHaS34rFdcI6 TnHtORV+qV6HC0PilD9ix7uV/TfWyYCXC9Vh/sJXbaohhJsp0RnFTTvXkXrvIvd3VG 8R/WiuMfVtuOEcq0cqGHo6B3xUhBL/6aFwF8goho= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x49LiG2J124075 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 9 May 2019 16:44:16 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 9 May 2019 16:44:16 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 9 May 2019 16:44:16 -0500 Received: from [10.250.146.137] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x49LiBmv083926; Thu, 9 May 2019 16:44:12 -0500 Subject: Re: [PATCH v3 09/11] platform/x86: asus-wmi: Control RGB keyboard backlight To: Andy Shevchenko CC: Yurii Pavlovskyi , Pavel Machek , Jacek Anaszewski , Linux LED Subsystem , Corentin Chary , Darren Hart , Andy Shevchenko , Daniel Drake , acpi4asus-user , Platform Driver , Linux Kernel Mailing List , References: <7acd57fe-604a-a96a-4ca2-a25bc88d6405@gmail.com> <20190508171229.GA22024@amd> <52e73640-9fbf-437b-537a-7b3dc167052f@gmail.com> <2f26dd9e-ada7-8e20-c810-a647854c338c@ti.com> From: Dan Murphy Message-ID: <962ec05e-b4ca-89b7-405c-f8a76f19427c@ti.com> Date: Thu, 9 May 2019 16:44:20 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" 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 Andy On 5/9/19 4:06 PM, Andy Shevchenko wrote: > On Thu, May 9, 2019 at 11:45 PM Dan Murphy wrote: >> On 5/9/19 2:04 PM, Yurii Pavlovskyi wrote: >> We are working on a framework for this. >> >> Please see this series >> https://lore.kernel.org/patchwork/project/lkml/list/?series=390141 >> >> It is still a work in progress > > Side question: > Have you considered to convert existing color LED controllers? (It > seems to me that your proposal lacks of the idea to keep back > compatibility with the existing controllers whre user may create a > sysfs node based on the arbitrary label, while it's good to have > multicolor infrastructure like in your proposal. Did I miss > something?) > > Yes that is part of the work that is in progress. The LED driver should be able to register either a single color LED or a group of colored LEDs. This can be based on a firmware entry and which LED framework the driver chooses to register to. Either the multicolor framework or the base LED framework. Of course we can put this in code and keep it out of the firmware nodes again thats why it is wip. I have convert a couple of drivers over in my testing that support RGB modules or have a RGB cluter used to mix colors. If the product wants to expose a single red LED via the label then they use legacy registration. If the product wants to expose RGBW as a single group then the multicolor framework should be registered too. Dan