Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp521781ybh; Wed, 15 Jul 2020 08:10:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLCMjcUhwQAx+nw5BsY0vBL/FTJdFqhIZUHZnluxy+ujFl3OmRYTu5m1EFnw4ba/PVTuHr X-Received: by 2002:aa7:c442:: with SMTP id n2mr43946edr.309.1594825850239; Wed, 15 Jul 2020 08:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594825850; cv=none; d=google.com; s=arc-20160816; b=086fnD2c1Igs8IMYIZYyDjQAGPPKXWk8u40m2j+yfsKY3Y6t5lAth2iVaCnGZ0ObAF KjsARrib7JH7GqKonOjYkD9aB2nNnPxa4gIvnroa6v3DnF3kTeHJauXqUE6ShW8HQVkR YuU1lxgxUmswkh7ZLHAa6BmnGy4dYy6CPpYGUAonWiiJv7212KZH0PgdZd2v8R7fQPgz gT4e8u6/gpIkcSL4Nlba6EqfrUyXwzkRQfv1OzoLn6NALK5KGAf/n/9uEDCtP2hRveR2 bNwbtilbcJOO8VYbDnv7w1A/FaI4pE6YD8mm7vB7uSuA/kb5OXdeHABNTw3+Hwp3Hni5 nuqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nydDo2IGGqR25N+w8PtLOs3MXp5bES++6+xt1I+Vmjk=; b=jSKt5xOMAyLSb4aTxcnqER84Afo4RT4WVP6O0cWGUOFS2lMJAp0S82TY4jigUw47cO aLzTnGLgq36fk4bg31yToyjDlqeA49aCn9Qoz1a6cd0J3xilvn5X8iOqERzZ1/JMXJls aiTcPm19NrItR0zh6CoWLW1HTNVivsvNgTU8/O+xQ0Vhv2B7saD32ERpn9wiiWQ4nhbn o4jlF1xJjtyrcEwN201wd936QQcvTNE4xuu39WH9kLYmXyuKoCiRFTS+AXKjST6ez6Rb QuPdO+uJ5mz6EoiunypABPBk64OuO9XMbqyMuCnHkwfRAUL8RSlOgjYVSmihqzjJjPy+ Q0zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hqrglwYg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h20si1412562edr.281.2020.07.15.08.10.25; Wed, 15 Jul 2020 08:10:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hqrglwYg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729389AbgGOOon (ORCPT + 99 others); Wed, 15 Jul 2020 10:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbgGOOon (ORCPT ); Wed, 15 Jul 2020 10:44:43 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 015C6C061755; Wed, 15 Jul 2020 07:44:43 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id a23so587724pfk.13; Wed, 15 Jul 2020 07:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nydDo2IGGqR25N+w8PtLOs3MXp5bES++6+xt1I+Vmjk=; b=hqrglwYgUtRgifcLBzcP2OXHvOdssF5fOdXQPIs7+sE9/mgvmpr7zsmbhXLtfIN0PC tvRdE6R0eSeeRCX90DdmcFAE03mx+hKeH1fERVyIH+qHUabEjv1fTqYUTnfENsikiyoJ HViODlQn2nad3Gf5tDtcKIw5mn3Ox0njER1niVNoIHsqWDxoVXafhmaiPmFGJXB185id 6xt4jekOHgu3b0vIVwYxfc1NBE3FKWAV4SwmVhduV1ofKVbN1kS0/YvrAi8w5m2odthW A2cUV0Yj5LEmXTMGtZFRlBeEOzudymFltEnD+NFlQV6RlUueYMpw8+vHFs2s4WQ38g7z jgHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=nydDo2IGGqR25N+w8PtLOs3MXp5bES++6+xt1I+Vmjk=; b=T+rjFUgISi0r2VVtn89+13H0n4Z/SoqfBgdd3aMtAAyh4rKR8JxDJFZzmDvyTnANeB QrxrZ85my+zdvKkijNGNn+NJ63J4e4UNQ+rxgWZAK4fU5z2CMKIqN+qq1HoKExcFMY8d v28z4uAKo7zuY+fYJ8GgND7r1RP8uULc5V9SDjoVaULrb+pRUEjSsigcRrpPjFgzNCZm 8zTbc18ifgSzxaCWZb/GGdszN4uiz6YDrCeDvB1B1++gJvFabQZ/5YAiVpjaEDT0CiXT rxazcs1jOfoCeYnYn1ugUic89nn8NHFQoF65qq6C0x1NSC7vypxQvThb8acxny6TiV5W bN+Q== X-Gm-Message-State: AOAM530GA9KoOJZtK6/R2pt/DnGfd044tJWZsQQChqCyUUqrak+9toeV Jo1yZ6O7rTTQ9uuVcjBKcVM= X-Received: by 2002:a62:3645:: with SMTP id d66mr9418905pfa.275.1594824282573; Wed, 15 Jul 2020 07:44:42 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id b4sm2449598pfo.137.2020.07.15.07.44.41 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Jul 2020 07:44:41 -0700 (PDT) Date: Wed, 15 Jul 2020 07:44:41 -0700 From: Guenter Roeck To: Marius Zachmann Cc: Jean Delvare , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: corsair-cpro: Change to hid driver Message-ID: <20200715144441.GC201840@roeck-us.net> References: <20200714105230.3126-1-mail@mariuszachmann.de> <20200715023622.GA164279@roeck-us.net> <1747396.iuIVfOqGsT@marius> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1747396.iuIVfOqGsT@marius> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 15, 2020 at 08:59:52AM +0200, Marius Zachmann wrote: > On 15.07.20 at 04:36:22 CEST, Guenter Roeck wrote > > On Tue, Jul 14, 2020 at 12:52:30PM +0200, Marius Zachmann wrote: > > > I found a project which uses hidraw to communicate with the device. > > > Because I do not want to break any existing userspace code, I > > > changed this to a hid driver, so hidraw can still be used. > > > Do I need to include the hid maintainers for the undo in hid-quirks? > > > > > That changelog needs some improvements. It should state what change > > was made, and why, but not include any questions or personal statements > > such as "I found ...". > > > > You never really explained why you had changed the driver from hid to > > usb. Maybe you can explain that decision now ? > > > > Thanks, > > Guenter > > > > This device does not use numbered hid input reports. As far as I know > it is not possible to determine from which command a response was > requested. This being a usb driver would not allow any other driver > to send data to the device. > In the first (hid) version I did not use hid reports and got > the usb_device directly from the hid_device which is not intended. > In this version, requests are made via hid_hw_output_report, waited > for and received via raw_event. > If one uses hidraw and this driver at the same time, it still could > be possible to get switched responses but there is nothing I can > do about it, as far as I know. This is only about giving the > possibility to unload the driver and using a userspace driver > if one chooses. > What a mess. Can you add some of this as comment to the top of the driver to explain the reasoning ? Thanks, Guenter