Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2813043rda; Wed, 25 Oct 2023 13:05:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9aCP3+jl0yPFZsi3sj0wBe8CGIlwXJRvC3uaB47ZC5s9d4v0PMfs+NVbu/e5SiVnHVYqx X-Received: by 2002:a25:41d2:0:b0:d9c:fdc7:632c with SMTP id o201-20020a2541d2000000b00d9cfdc7632cmr1052844yba.21.1698264317455; Wed, 25 Oct 2023 13:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698264317; cv=none; d=google.com; s=arc-20160816; b=eXPGIZrrSUZ/gbeNv0WEhdfcNWw+ytfL1W6mZUE/79qy4W5VHLGLvzIknM3Udj8Xjt r66W+3s/K18IkElr0saGod9814Q1NW/crVY1heRn9l8U90y6H7j5lyE7UALBTxamoIRs l4SkBddddUuFoS6LnRKeeDkcg/BPd+8LsXi+ntx91mVw2GUQf21ybR8jm7Om9MaAtiGE h3WpQeYjU3PCWqlZJ5TxAAN7K9QKG6q3mQLMpAdj4yLzWGpYJhuKICZCc+DrYZYeKSJ+ nRw1w0+RNA2hoEC/3y9MLgG3SKsOtTVeTMNZAceLYnkAEcMYizYQateHx57w0/mmDYOT B+qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=aRXCvqUEGxPWmLeNrK49IAezUNl9MkqYIjX1pTeuyPs=; fh=LgxuObA8Pj0swpISKA1MUGkdNlHGJtJkGTC2Omv14YQ=; b=dSrVzHup5edBD0ux/u2sVQ6sgvCOuYtLub4xzk9xRzpq+T2du9ApRpWAfIVJQCNp5o X5OAEl0CZL1H4SyZqjtBwINkr1qJfaF5TCIK0HRd0EGFMsdLkUS16sDsVNnsuz81Y/8C UUK+Iskr/jGDHQ9oXIb++/kcWK6Kq8Xv8Pn+/mu+zNrHL5Zdn6sfr9bTwaj0FNHPiGl1 yHbb0z4u6PE9D26udxF/NTjSB9T/0KYk7W4zIY0d7yf8S0HGASZHLhkN2q71r7PidugB 1gL4rJplKl0w3Xt+MJspjhHXnq3m1SjCO4ZZdFggvvc3joe9DteRi+zc1K/+nvvzdDPJ DaKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CyXkHZI8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d193-20020a25cdca000000b00d9a5a534bf5si3509847ybf.346.2023.10.25.13.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 13:05:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CyXkHZI8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 766A6802A03B; Wed, 25 Oct 2023 13:04:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234337AbjJYUEo (ORCPT + 99 others); Wed, 25 Oct 2023 16:04:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjJYUEn (ORCPT ); Wed, 25 Oct 2023 16:04:43 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 163618F; Wed, 25 Oct 2023 13:04:41 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b9338e4695so1580821fa.2; Wed, 25 Oct 2023 13:04:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698264279; x=1698869079; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aRXCvqUEGxPWmLeNrK49IAezUNl9MkqYIjX1pTeuyPs=; b=CyXkHZI8wVNtfKaOvmmhbeqlQwpIgNtlcdc9pouWUyF/ZCGu/1kJK5SAlCKiFpJOnc dQzemP2H4U3eQuxijtTlDAoLQcCnQTwl5ui8MidVTbPRcqbyAI+dnfaAdD1HDhpenhBg 5BNZPMy0+u08y+N7OgWdnAiDT7IjzcDmM+2hLbkAx4CU7OLHOc0Z4CR0Q8xwMX4GmX+F etSFfexyGS6Wifp2RhWJ+D7YG5sKYEtBfBqCLxLODVPYHoCyP42uhgirgfqxOki/DHkq 8WPxPEC136Xui6vrnDeyNqzBCQv6XA9Qmxq5TFD6RJUjCCkEVXDaKSFui5D9tEX6N2tG XRWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698264279; x=1698869079; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aRXCvqUEGxPWmLeNrK49IAezUNl9MkqYIjX1pTeuyPs=; b=O9nz73wmlOeed026+eTbpw9MbMUYQ2Btvp5n6DYMgR//mge4nXWvr6ghEHyhYeXNUd qJBNf1luD1CaSp+AjoV6KHpW3iQiPND4TWhZLb3YpDshk9nvXe258TDTXuJCXu3cnV5f 6VRdM+qtlMgvMO36UX7eH1nRgNNLGMxTtxJZ21X8RyOsFGSnILAnyXq/hEakobq2yANp vg2l5i7fupog1Ey3NnGwk6NZQdwHVRZ6W4IhzeJGR2TMeIzyalo1t6J0c1WH5UWjdthV kcDQTYUQt1hISJftegJokbMYtpMMfi5XymU4Y1F/cMnuz2z/ezMiu0TQF556uVOxgYs/ vEuw== X-Gm-Message-State: AOJu0YwIb0ZFtGZ68IVyg2MiQGgO5GM4ubg5flaMMh0smmbVR+QFuxkf zjqb/84W1wrN6FwemdMq1og= X-Received: by 2002:a2e:8716:0:b0:2bc:b0ae:a9e5 with SMTP id m22-20020a2e8716000000b002bcb0aea9e5mr11159207lji.42.1698264279020; Wed, 25 Oct 2023 13:04:39 -0700 (PDT) Received: from [192.168.0.28] (cable-178-148-234-71.dynamic.sbb.rs. [178.148.234.71]) by smtp.gmail.com with ESMTPSA id az32-20020a05600c602000b004053e9276easm599668wmb.32.2023.10.25.13.04.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 13:04:38 -0700 (PDT) Message-ID: <456be27a-1e62-4b88-a868-6238813c26c8@gmail.com> Date: Wed, 25 Oct 2023 22:04:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: savicaleksa83@gmail.com, linux-hwmon@vger.kernel.org, leonard.anderweit@gmail.com, Jack Doan , Jean Delvare , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] hwmon: (aquacomputer_d5next) Check if temp sensors of legacy devices are connected To: Guenter Roeck References: <20231016083559.139341-1-savicaleksa83@gmail.com> <20231016083559.139341-2-savicaleksa83@gmail.com> Content-Language: en-US From: Aleksa Savic In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 13:04:50 -0700 (PDT) On 2023-10-25 21:41:00 GMT+02:00, Guenter Roeck wrote: > > Why is the sensor instantiated in the first place ? > Returning -ENODATA for every reading is not desirable. > If this can happen, the is_visible function should check > for it and skip affected sensors. > > Guenter > The external temp sensor(s) are hot-swappable and can be plugged or unplugged anytime. Similar logic already exists in aqc_raw_event() for the sensors. Thanks, Aleksa