From patchwork Mon Oct 16 08:35:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksa Savic X-Patchwork-Id: 15407 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3318201vqb; Mon, 16 Oct 2023 01:38:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXdERO5hiNZsm2WER5ypu6vpPkmUpZWFqlgmB0KpfVT78U0A2OMOUDJcsD84Ebs1nuwJeb X-Received: by 2002:a05:6808:f09:b0:3ae:108d:acee with SMTP id m9-20020a0568080f0900b003ae108daceemr39118865oiw.1.1697445511131; Mon, 16 Oct 2023 01:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697445511; cv=none; d=google.com; s=arc-20160816; b=RUjcRn9As5QsxcubpR6NMnmId3UTnJ2cVhSdjDK0IbhNoU5ctmE7jC6XmgjMzJdou2 grrPOnVMtpEabOdzK5+2E17Z0Ivr2FayDlWulW5t/rZUaUZSz3ooG9eN0KM4jT7/oRgO O5DG500WV1xf0DbEX3ijFlbfi2JetwT628UjHgZpiIhr2i9kgfwkAflXIu1/YKpJtbd0 cQDsKZYvDOf6fNV3ht9+5tk/TLkuehcwHdHnidB9IuXDhtcj2qW37A6DEyN+P18M1tIf ELEmQ6xtPgragom/buhnNTHUkqiD6TJ3mJMRhL2+wEt761w6LkI7lrUKdzJQR24ZI22Z Wm8A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+dDc+JFvPQYziTivdJAsBuiK7HtHQ+wh1mq0WyZIQh0=; fh=jVfC5y9HvxUpPXsjgEUzN6Gy1m3u5D6D9dKX/OObWJE=; b=uaGCcyCQPlbbXb4M/j+6JokWQTKna/YTP/+HrWZta59UWXA9uiz1yL92FAjsGmSb4U ToPyiC2/Q9y3lir/WrxgY6u2x/CEXEZLc96rD/WFMswKwmMBXxHawVSBUmsjnvf3Ampn Fxa5hmA8Y8qYVAEaugLFVkXrBVxvzr20cR2O1JxqzOX2UHIIM39Qvo6ArnpbJdcG39db SS6V0V43znsRuPRsiHg414xgj4+k9NZkNYf4jvHehexmZWIej4o54ou7FGuXTq5Txrvd bQs/1G1KRmIhxCwayuoXGCGE9PQMqxEXvSLgIoOVqxaaC8o67hIEuiE6qyxCj/pQhQx5 i7rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="m/NjqnuN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s205-20020a632cd6000000b005aa7f52fe5esi7294023pgs.111.2023.10.16.01.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 01:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="m/NjqnuN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EB1748045947; Mon, 16 Oct 2023 01:38:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbjJPIiQ (ORCPT + 18 others); Mon, 16 Oct 2023 04:38:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjJPIiO (ORCPT ); Mon, 16 Oct 2023 04:38:14 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4946A9B; Mon, 16 Oct 2023 01:38:13 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-503056c8195so5437044e87.1; Mon, 16 Oct 2023 01:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697445491; x=1698050291; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+dDc+JFvPQYziTivdJAsBuiK7HtHQ+wh1mq0WyZIQh0=; b=m/NjqnuNAEzOk7KTTt7lv3a+Vx387UE20lFYr0I9gO8o4hG81L759C783dAbf6FLIC XbcLluNJmTR+JBci8Y1zKZ1JTwp53hXsLYSC4eBGoe1XlD4MqXaLHEjs3TtggKpxAoz1 Wb10SB0blYs3j4xkQkdWM0RY2P8TUU8KxYVkdtkqW8nxz7ml7/+pL7bBCknSL3y/dj20 fmUxsT2SAu3yEzX0o6i5wZTcncjejfS0dX/fR2f3Wk+a0rp/q/UfMw9se5JPjHe1nIVD grDkm/m0tuOIv/rQ1XBz2gzu4vDF0crLYJxGzJAqqJfdRJCt0yjJzED2bek3+ute/LU7 jcOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697445491; x=1698050291; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+dDc+JFvPQYziTivdJAsBuiK7HtHQ+wh1mq0WyZIQh0=; b=OAyGE4uZ2MgrjRi12hY0AHYJQxn/PY9EkNZMqwb7q+KB0C7weA3NiW+qUm+F8U+fsF c35keFbv3hONbtHtHqHx3JDye/SgarjY8pZfeargzY8a60qV7JKRO9U+/wMJYdV2vDYc Kz1zTI0VKKDdI2ujmXTqh93yw/GZYqFpk+Vgs0n2BlME0/jDDFGW7VlVsz2i3i+GEgSQ VECwNM+1FQ6bvZ5rH85h08tE+YLT35yO6KmrMLa1yNozuV/xHcF8EPfiJXDI2CM7Ku3V 6SFfPLCSpuKwhQ2IAUzpZF0MvzElu0u9k0EpM4nMaMxK+BQZ9CaCKocrkXSaETgATGLU kuwA== X-Gm-Message-State: AOJu0YxTusldAKy1tzkzvtHSZxzsGux5B8+Zhee8Z0jQ8e8ORFTmTBoF vXRrmD4FdATl2b2823oS66MgpKQnV9XN3A== X-Received: by 2002:a05:6512:1307:b0:500:7f71:e46b with SMTP id x7-20020a056512130700b005007f71e46bmr29896857lfu.1.1697445491007; Mon, 16 Oct 2023 01:38:11 -0700 (PDT) Received: from fedora.. (cable-178-148-234-71.dynamic.sbb.rs. [178.148.234.71]) by smtp.gmail.com with ESMTPSA id p20-20020a05600c469400b004067e905f44sm6633554wmo.9.2023.10.16.01.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 01:38:10 -0700 (PDT) From: Aleksa Savic To: linux-hwmon@vger.kernel.org Cc: leonard.anderweit@gmail.com, Aleksa Savic , Jack Doan , Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] hwmon: (aquacomputer_d5next) Add support for Aquacomputer High Flow USB and MPS Flow Date: Mon, 16 Oct 2023 10:35:56 +0200 Message-ID: <20231016083559.139341-1-savicaleksa83@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 01:38:29 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779900624032592683 X-GMAIL-MSGID: 1779900624032592683 This series adds support for the Aquacomputer High Flow USB and MPS Flow flow sensor devices, which communicate through a proprietary USB protocol. Patch 1 resolves the case when devices that communicate through the legacy way (such as these) don't contain a reading for a sensor, in which case -ENODATA is now returned. Patch 2 adds support for the devices and implements reading their temperature and flow sensors. Aleksa Savic (2): hwmon: (aquacomputer_d5next) Check if temp sensors of legacy devices are connected hwmon: (aquacomputer_d5next) Add support for Aquacomputer High Flow USB and MPS Flow Documentation/hwmon/aquacomputer_d5next.rst | 7 ++ drivers/hwmon/aquacomputer_d5next.c | 72 +++++++++++++++++++-- 2 files changed, 74 insertions(+), 5 deletions(-)