Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp313297pxb; Wed, 23 Mar 2022 19:10:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm0zSTxf/QLkBLphbou2JHLGEghZMqNVhSJv2eTGbhKfR64VI7F33s8Ztgnb8wabzHP0CS X-Received: by 2002:a65:538f:0:b0:382:b4d:bdd8 with SMTP id x15-20020a65538f000000b003820b4dbdd8mr2255816pgq.262.1648087822973; Wed, 23 Mar 2022 19:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648087822; cv=none; d=google.com; s=arc-20160816; b=i0STpPQnQM20g60JPbgz54LUe89YvfsU+SUd/zJ9U8ruKhRQS5mC7TkfF5pRP81Ymp 15enj5+wBXfccCjeeuXS0rGwmr5ENEPUHoJUBcYLwXYANIkiMyNqQOg800X4MyRxGAXb iY2z0TTxwUJf//I8jwAwcIzitryF9J2CFojINL+QOOK3YYnFVIDS/c7vymPFWnTdVJ5Q L5FSqB2hqM3n+Osw/GwHHu1lYjlSTuaMRc/zpiH5rjifIcHv/SvLl0UWRlRIGCluFqG8 K41MRI4K2b0Ptymdk4zva83hALwZ3NBYm5GwU/1IjPnnazGHG+AMg1DP0nz7LUkD14Ba jMxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=m7Xz4InpqMPNArnoGXuGc4MHG/DhHCHeiE90FjYBCro=; b=kHFIRZeFxxUbhTp6Pvax721+ezxjcD4JaGO/f1shm3GXINz2Xzn1K/BIEl3z6i1K4R fj7Br+4epyiwSvxTJdgyWvqqdx3nDWpVk/qo71ohGN5/zrnn5CIAxSLm5nKk3o8sVrJA 1IagB9L0lJZ3pD3ogBQeBGT9Aq+hs8+q0okylN7HUfKJNI9Z/29nZfLVhl/88Zc44R5v ViDLtBx4g0218uJGRVTNdzAaXWw4nbSH8CQxP4lECM5LhqJxBLf29re0c5wuLx4ZlWLc cJasyRaQGtmWsTa3g4FQaRSIT/cj1rlBuan0Ysm9IrAy+RCpBcfgBzJS2PKyvWsD98DE EkVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a170902bb8900b00153b2d1657asi18779851pls.386.2022.03.23.19.10.09; Wed, 23 Mar 2022 19:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345225AbiCWWZ5 (ORCPT + 99 others); Wed, 23 Mar 2022 18:25:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345220AbiCWWZ4 (ORCPT ); Wed, 23 Mar 2022 18:25:56 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C16F8CDA1; Wed, 23 Mar 2022 15:24:25 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 8F6DD1BF204; Wed, 23 Mar 2022 22:24:19 +0000 (UTC) Message-ID: Subject: Re: [PATCH] HID: logitech-hidpp: support Color LED feature (8071). From: Bastien Nocera To: Filipe =?ISO-8859-1?Q?La=EDns?= , Manuel =?ISO-8859-1?Q?Sch=F6nlaub?= Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 23 Mar 2022 23:24:18 +0100 In-Reply-To: <275245e8048fa124055d9ff3d10ce6562294483a.camel@riseup.net> References: <275245e8048fa124055d9ff3d10ce6562294483a.camel@riseup.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-03-23 at 21:22 +0000, Filipe Laíns wrote: > On Tue, 2022-03-08 at 16:50 -0700, Manuel Schönlaub wrote: > > The HID++ protocol allows to set multicolor (RGB) to a static > > color. > > Multiple of such LED zones per device are supported. > > This patch exports said LEDs so that they can be set from > > userspace. > > > > Signed-off-by: Manuel Schönlaub > > --- > >  drivers/hid/hid-logitech-hidpp.c | 188 > > +++++++++++++++++++++++++++++++ > >  1 file changed, 188 insertions(+) > > *snip* > > Hi Manuel, > > Thanks for putting this forward, although I am not sure if this is > the best way > to handle this. > > Before anything, could you elaborate a bit on what lead to you > wanting this? > > There are a couple of reasons why merging this in the kernel might be > problematic. > > 1) I don't think we will ever support the full capabilities of the > devices, so > configuration via userspace apps will always be required, and here we > are > introducing a weird line between the two. > > 2) There is already an ecosystem of userspace configuration apps, > with which > this would conflict. They might not be in the best maintenance state > due to lack > of time from the maintainers, but moving this functionality to the > kernel, which > is harder change, and harder to ship to users, will only make that > worse. There's already an API for LEDs in the kernel, why shouldn't it be used to avoid user-space needing to know how to configure Logitech, and every other brand of keyboards? systemd has code to save and restore LED status, as well as code to change the level of backlight. I can imagine that it wouldn't take much to make it aware of RGB LEDs so it handles them properly, whether it's for Logitech, or another brand of keyboards, or laptops.