Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3801131rwj; Tue, 20 Dec 2022 02:00:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf44qP+LjgVhvQ6k25fb0rr/17qVJayDC75DWP0ZiKGGPWJO+YgTMwm9rIdeGoHC04facIxE X-Received: by 2002:a17:906:9616:b0:7c1:e78:11ed with SMTP id s22-20020a170906961600b007c10e7811edmr39393633ejx.0.1671530433609; Tue, 20 Dec 2022 02:00:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671530433; cv=none; d=google.com; s=arc-20160816; b=Q655q6o0JCbEjms5K11iAppWscyW1xOqOgvbTCPFJgtIWWB/P1TXqQwq4BeHebqGu0 eC26y8VV9rVCYja7kG+Zzx9P7bKxDbylmMjAQH7R+5AocfbSGz3UogzF7YXVSnZZo7oi o6vzuIXoGPx6aE14cdK44XhzGBAftN+7W+dN4nmtxcN3OTDHeojtx1zaCbD4nbGl68+4 tHmwGr0AH2wflReu4HiKuawunCgUAVVPnaEBlL/XZbgkdscNYgpSO+J+VhS6hsBZmPo4 1EjZATptj2v38jcx6Wu0oGV/f6in31jUFNZEf6KK2va/NaNnc9VmD0oJzSAMXkttfUZq fnzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id; bh=kPC8hgoRz8b1CBmYw31ns2gLZ8pSE2gCOBiJ7L2Ucfg=; b=houB/T/XHPj6x6h+Ap/1edkfAM2J2/nZHG6gB1EpBI9bNtPwxvV5su+uEkTvO1mOIj mgjY3iPaJcVGUKxb8tpQJb3MZMLd0mk+6VRgXJKyGCkUDxIzzp6V5oE1WzM6sWuUV7Fb SkG8uZxelpyoztN0EDltK+WJo2DXc9vvjwxNqIdjDYzZ8fDMXx0YdlSlwpfmsAMdKo6F 5FF1qFmSxgcQJHzo+4GJIGPQce64+TNtcBr3e+jdMfm+H1StvUTYIg66G8EmORIbZTju BFCG2M6wdQnm0Bu6I0FHqaARV3wuMCF+6RXA0iGtXeJrqgq8dVgvTOXFexgzfSaF4CMF BUrQ== 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 be11-20020a1709070a4b00b007c5006e4f75si11383721ejc.643.2022.12.20.02.00.16; Tue, 20 Dec 2022 02:00:33 -0800 (PST) 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 S233295AbiLTJX0 convert rfc822-to-8bit (ORCPT + 70 others); Tue, 20 Dec 2022 04:23:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233382AbiLTJXF (ORCPT ); Tue, 20 Dec 2022 04:23:05 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CBC4186AB; Tue, 20 Dec 2022 01:22:57 -0800 (PST) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 0279D1BF20B; Tue, 20 Dec 2022 09:22:53 +0000 (UTC) Message-ID: <1b466138b931e7c149551a3f5bfcf0edb4eb7932.camel@hadess.net> Subject: Re: [PATCH] hid: Support for Litra Glow From: Bastien Nocera To: Andreas Bergmeier , Jiri Kosina , Benjamin Tissoires , Filipe =?ISO-8859-1?Q?La=EDns?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 20 Dec 2022 10:22:53 +0100 In-Reply-To: References: <9fca69c7-cc24-63d0-98f6-80c28fc69a5@9300> <8f00ae9463b07fbd789af3840cd59a9e99caff34.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS 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 Fri, 2022-12-16 at 15:27 +0100, Bastien Nocera wrote: > On Fri, 2022-12-16 at 10:53 +0100, Bastien Nocera wrote: > > On Thu, 2022-12-15 at 22:09 +0100, Andreas Bergmeier wrote: > > > Tries to implement as general support for Illumination Light as > > > possible. Note that it is singular, which means by Logitech spec > > > we > > > are > > > fine off with just handling one capability/device. > > > > Your email client absolutely trashed the patch's indentation, it's > > unreadable as-is. > > > > > Implementation currently only exposes Brightness and On/Off > > > controls. > > > Does currently not expose Color Temperature because LEDs does not > > > support it. > > > > > > Introduces HIDPP_QUIRK_CLASS_SIMPLE_START to prevent reconnect on > > > startup. Could not get Glow to work with that. > > > > I'd really rather we didn't introduce a new quirk, but instead > > fixed > > the fact that we need to restart the HID transport to support 3 (!) > > devices. > > > > Would something like the attached patch work? I haven't tested it > > yet, > > but if it works for you, I'll test it on the devices I have here. > > A tested version attached. I'll need to test it against a T650 before > sending it for review. I've tested it with a T650, and it works, so I sent it for review. Would be great to know if it helps simplify your driver. Cheers