Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4665309iob; Sun, 8 May 2022 21:10:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhwE1pIRRvD3/5DFjiAgv3wQP+/PpSnh4mr6upBlyPElxbwXOAef85UJyFy21VjmwnoHvc X-Received: by 2002:a17:902:ab56:b0:15a:ccc7:a311 with SMTP id ij22-20020a170902ab5600b0015accc7a311mr15072978plb.22.1652069408343; Sun, 08 May 2022 21:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652069408; cv=none; d=google.com; s=arc-20160816; b=tix1InvojZQcI+9iWodwSjUdA8ix/FlNjW7AuJS3oC18ZKgxdZ3CJs/dKEojOEByf2 ghHk734kIZKJrIdDl/m02NgvBLKktHYVEbTZfsv0NnvLzQLhpOMmwem7hJRcv70YKK2D pzGkTY5XGfvTg3kG3WQDs2hXiVBheBR/5DZUvGZ6QLyU2famRd/2le7ZA0TLMiY64fHI qWXkaItYOVHaj4t5MAFTpy3udLUiKRsfRG5IRbwbxPvDkQF07zOBx0/o2NB9ihU0PSUr 6gLoVFtyyO3J4YooC3V7vN/VQEG9n7RihJYfQpuERiQ6/in9V12bbZsmMn3LEhqAz+dD 50Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NGBG2yDxZYJm1Xbbg5gYy5r5YhvW8OKDH2uAS9yDnXo=; b=dH/UCSEN0ESOPqDM9qihMKDWWdUVqiXRkOW0ZicZfTemwrEKulZhg5nZoFG+qnq/FW NAss109aOqIuG0mzd4XtlvpbIESVEwQmlUePSf4RYc2TFqBMx5t7RFD3F6qQll7fx2PX g5hu0HAl0F/0RqvzT04pFPo4RZzj2g63Yop2mMyFXa9arhFQArqBLovI9VwxK+MC9gVA MwOdVBi+b/MDdzzab+kkaqVutgspB0bOebHkNLBwFkuCZvv+/OAce2c5MGFDJbegl/if ojXOvh5JUpELcN3qHrFxHtnOKjR52QB6mMg9N2HDjRz8AY6xSFGeYfn2mYyAM1LqL4L8 UVUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c14-20020a056a000ace00b0050a5da0cd2csi14208373pfl.30.2022.05.08.21.10.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:10:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2826910B3CD; Sun, 8 May 2022 21:08:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349097AbiEEI3o (ORCPT + 99 others); Thu, 5 May 2022 04:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241850AbiEEI2z (ORCPT ); Thu, 5 May 2022 04:28:55 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 096C9E6D; Thu, 5 May 2022 01:25:14 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 140C81C0BCC; Thu, 5 May 2022 10:25:13 +0200 (CEST) Date: Thu, 5 May 2022 10:25:12 +0200 From: Pavel Machek To: Manuel =?iso-8859-1?Q?Sch=F6nlaub?= Cc: lains@riseup.net, jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: logitech-hidpp: support Color LED feature (8071). Message-ID: <20220505082512.GA14065@duo.ucw.cz> References: <20220323210423.GA10741@duo.ucw.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > 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. > > >=20 > > > Signed-off-by: Manuel Sch=F6nlaub > >=20 > > Please cc LEDs stuff to the LED lists. > >=20 >=20 > Will do. Though it seems like first we should discuss whether the kernel > in fact is the right place, no? Well, on embedded systems keyboard backlight is handled in kernel. > > > + cdev =3D &mc_dev->led_cdev; > > > + cdev->name =3D devm_kasprintf(&hdev->dev, GFP_KERNEL, > > > + "%s:rgb:indicator-%d", hdev->uniq, zone); > >=20 > > So this is keyboard backlight? We should add the documentation at the > > very least, so that other drivers use same name. >=20 > I do not own a Logitech keyboard, but some mice. There are RGB leds > that you can normally control with Windows software. >=20 > I'd suppose (but could not verify) that supported keyboards by Logitech > work with the same feature. And I guess we should do the same for Logitech keyboards. Userspace does not need to go to /sys/class/gpio... to control keyboard backlight on Nokia cellphone, it should not need to talk USB directly to control backlight on Logitech keyboards. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --jI8keyz6grp/JLjh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYnOJ6AAKCRAw5/Bqldv6 8itPAJ4mgJfNh/+ojD3N55l+TKJll9C7NwCgt+QyCCrDAaKELbCva5XyElaLLwo= =m8g+ -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--