Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp348327ybt; Wed, 24 Jun 2020 00:23:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCGKX0Po6G9IEeHT+a3cvrUS3cym9mksyx4ABCeDzQ1pDk6X8JV0BFVc7aAqheCvzHBor2 X-Received: by 2002:a17:906:da0f:: with SMTP id fi15mr442682ejb.237.1592983413537; Wed, 24 Jun 2020 00:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592983413; cv=none; d=google.com; s=arc-20160816; b=uplKBLOxzNSrWwUvnWwtkaXUUKJMccTmQjlQkVbckfGFsExy8xghiz3m0sxPs7orY1 e62NBYAx6lsSkCUu9ia/k5qqAztQ7SVK7+GPLyAg4aFqM4M1+wmNCJZ0MfG7Fa3r7AsE YIpveUbBJ+k8YCXTx/EYhOmLiD+6ChLGlOtRiigQMa9nuYnO35W6JFocNbWV/eAEuxDr aBZTQ/MSrOvdzII5gJi/tf4tet63fHGOxEjPMJlxLEgKmUvHsb3x39GqqJ51875rwFpN 8g3UCbWb/GMgJ6qWFtzV615ZqsUMepqnELWoUBzVi6RMSKgecsx+ZtcZDX5kcZ8NXjtP vVEA== 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:mime-version :message-id:date:subject:cc:to:from; bh=kCi30OUurDTGN6ojpQjt9ZxpcNHl5sJw7SWJdP5059E=; b=t3FuFRh8FxVY4epxWh6PPVh6vRymMMCGYR03cCsQxCh64eKm4j2Q5Fkw+mYCRn7zmf Gnh3JBBnQ6KttGiZjeNS9BMAk6zHSyqZIJIJsWrBARv2+MVsymkG1egdlSsoX+0gnHfg PM8IKPZ63f2fxGB0FcmR4T2pYGvURsNKhjwOhoEEx6YtXQwxtVT5iACc8wgt6ygJCqgm +XMX1Wm3lrMMVdd59ROJMFWIW06OjNwMUAAnTEVeFzPSkY4QNp2DyHvaT8BuH7gL4JvD giwdgr++1M3GomzhoRt8BnFhKM2eu6Lvtq5OKYQBzcL9Q6AfCGmrkZmuGuqbB3oBot2p eIXg== ARC-Authentication-Results: i=1; mx.google.com; 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 k7si12133762ejr.30.2020.06.24.00.23.10; Wed, 24 Jun 2020 00:23:33 -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; 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 S2389705AbgFXHWu (ORCPT + 99 others); Wed, 24 Jun 2020 03:22:50 -0400 Received: from ms-10.1blu.de ([178.254.4.101]:60686 "EHLO ms-10.1blu.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbgFXHWr (ORCPT ); Wed, 24 Jun 2020 03:22:47 -0400 Received: from [78.43.71.214] (helo=marius.fritz.box) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jnzjw-0000VK-Jk; Wed, 24 Jun 2020 09:22:36 +0200 From: Marius Zachmann To: Guenter Roeck , Jean Delvare , Jiri Kosina , Benjamin Tissoires Cc: Marius Zachmann , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v4 0/3] hwmon: Add Corsair Commander Pro driver Date: Wed, 24 Jun 2020 09:21:51 +0200 Message-Id: <20200624072154.22486-1-mail@mariuszachmann.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Con-Id: 241080 X-Con-U: 0-mail X-Originating-IP: 78.43.71.214 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is v4 of a driver for the Corsair Commander Pro. It provides sysfs attributes for: - Reading fan speed - Reading temp sensors - Reading voltage values - Writing pwm and reading last written pwm - Reading fan and temp connection status It is an usb driver, so it needs to be ignored by usbhid. (patch 3/3) This is based on the staging/hwmon tree. Signed-off-by: Marius Zachmann --- Changes from v3 - add device ids to hid_ignore_list in hid-quirks.h - removed unused update_interval - ccp_disconnect is static Changes from v2 - add corsair-cpro to Documentation/hwmon/index.rst - add SPDX license identifier to corsair-cpro.rst - remove fanX_enable from Documentation and driver - changed comment style - clarified protocol in comments - add get_temp_cnct for reading temperature sensor connection status - added temp_cnct and temp_label in ccp_device - added tempX_label, showing connection status - renamed get_fan_mode_label to get_fan_cnct - get_temp_cnct and get_fan_cnct only called in probe - send_usb_cmd checks errors in the device response - send_usb_cmd clears the buffer and sets the command - inlined get_fan_rpm and get_voltage and removed functions - more reverse christmas tree Marius Zachmann (3): input: add to hid_ignore_list add Documentation add driver Documentation/hwmon/corsair-cpro.rst | 40 +++ Documentation/hwmon/index.rst | 1 + MAINTAINERS | 6 + drivers/hid/hid-quirks.c | 2 + drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/corsair-cpro.c | 489 +++++++++++++++++++++++++++ 7 files changed, 549 insertions(+) create mode 100644 Documentation/hwmon/corsair-cpro.rst create mode 100644 drivers/hwmon/corsair-cpro.c -- 2.27.0