Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE0BFC636D4 for ; Sat, 11 Feb 2023 19:07:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229612AbjBKTHC (ORCPT ); Sat, 11 Feb 2023 14:07:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjBKTHA (ORCPT ); Sat, 11 Feb 2023 14:07:00 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A2FB1423D; Sat, 11 Feb 2023 11:06:55 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id w3so1195302edc.2; Sat, 11 Feb 2023 11:06:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rWWLFwjwXxaSFcUV635NAOtQG8/udwOIXa9FG4BJ85E=; b=otZuQrVb7TFjSTbAIfCKtzLgQEIsq+6/ivb+xqO117HQpmaGlcbIXGw6o5C8D9UEgm DKPZd651TxMQIg/DMFyhY7LMXx58/eWQFtCQV6NuNOnJztriBUb8QdttdvHL+MKFf1TG zZKqXYJoWWFY3yedN39B53LbgZOaoFk7DrwK05y2lvgcvK2tY3JqBu0bmCsA/aRpK7EE vpDQXOk8IrxTSmGn3GCKPCd+C7ZQiSCj5eJffhvF8uATtW+pngNIZCEmKUtST3cMIzfL J1WjUojanJvQtELnDZqa2yfqxLeRh4sL5QaAhE7lRERa0hNrcJ+AYbP1Au8EC2jdxLbG NtaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rWWLFwjwXxaSFcUV635NAOtQG8/udwOIXa9FG4BJ85E=; b=oLrbIxIvvyoa5vNNWfjAHj0/odysCAfo42jxwtUfdeda3PYlWqxnbdKOtX6dmQBlFg ExgB/AjDIAQonnrn+aEa+aNbfACHUpK+9qRj3YGU8EHGT1vasjsjnmjC7VOQVoVpw8eY Wk/qTvl8YqgrECGFpOTHn8rDpjgV6Tg4Ag9GU7+juXgxzZEXwXvT/pPuDvM39uFuUNak jejnjiF6akD4K3D8h1GmsN/VFXPZ73Hwpr3vM0sCkasK52gSc4dU3mElGDEX35n57yk0 GC1pfp/sLaJdqzzEPHwhPD6vXDHOF9OwxDj2gVUv8Kr8QRdjqkK3GgILnUhJQ4vAjlxz 7yLA== X-Gm-Message-State: AO0yUKV4pvY+VEqxtBtWbv90ylciRwl+zb13KRc75+vT0xt3KWlIRZyp BURhO7JZEdeL6hvjvu7KgCs= X-Google-Smtp-Source: AK7set8k+CwM5OCEfLGAME57ZvTwoOl9TFBiE24RWY9+zmG2mnBLIBkTTeOBH81UI7GW0p07IHLHxg== X-Received: by 2002:a50:9352:0:b0:4a2:4675:2162 with SMTP id n18-20020a509352000000b004a246752162mr2078207eda.3.1676142414076; Sat, 11 Feb 2023 11:06:54 -0800 (PST) Received: from [192.168.0.22] ([87.116.164.178]) by smtp.gmail.com with ESMTPSA id t2-20020a50d702000000b004a236384909sm4137637edi.10.2023.02.11.11.06.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Feb 2023 11:06:53 -0800 (PST) Message-ID: Date: Sat, 11 Feb 2023 20:06:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Cc: savicaleksa83@gmail.com, Jack Doan , Jean Delvare , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] hwmon: (aquacomputer_d5next) Add PWM mode control for Aquaero Content-Language: en-US To: Guenter Roeck , Leonard Anderweit , linux-hwmon@vger.kernel.org References: <20230211165923.17807-1-leonard.anderweit@gmail.com> <20230211165923.17807-6-leonard.anderweit@gmail.com> From: Aleksa Savic In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-02-11 18:41:52 GMT+01:00, Guenter Roeck wrote: > > Adding the capability without actually supporting it raises the expectation > that it works from those who don't know better. Please only provide the > capability to set the mode where it is actually supported. > > Otherwise one could argue along the line of 'hey, let's just "enable" > all attributes no matter if supported or not', which would lead to a > lot of confusion. I really hope that isn't done with other attributes > in this driver. (snip) > > ... and it isn't even mentioned here that the mode only works on > Aquacomputer Aquaero, and only on the 4th port for Aquaero 5. > > Really, please don't do that, and I sincerely hope that the driver > doesn't hide (i.e., claim to support when it isn't really supported) > other similar limitations. > > Guenter It doesn't, features are exposed if the device supports them. I'm part to blame for this one, I didn't create an issue at the upstream Github repo to track this. We'll try to find a way to differentiate between aquaero 5 and 6 - the aquaero 6 is basically an expanded version of the 5 with more powerful hardware, firmware seems to be relatively similar. Aleksa