Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp452422rwb; Wed, 10 Aug 2022 10:52:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR5GXpcsmtoeav6LhyOhA89gHU68CI6R7MBMRf6TgrBPCx85SFGS3tKX4pEGXyCRXHmtiX5D X-Received: by 2002:a05:6402:1f8c:b0:43e:8fab:76c with SMTP id c12-20020a0564021f8c00b0043e8fab076cmr27235564edc.126.1660153948282; Wed, 10 Aug 2022 10:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660153948; cv=none; d=google.com; s=arc-20160816; b=zXZ8LG/r4/cwOYeWllOCtJjJl1YOAJ8d9rXU/R0pR4QCISZrVrsDVJPQ5IqxWXRjbv Y+2YdDKIGzl/UpioN0x3hDPX1DO0syVvANtOxQtCXwfLYWqnrQNmzIyCR4LmdqB/vtMI R6cETZExCEgHKcUjTiZoQJEoTkUsgSURs9zKeaBVZVY9J+TfZFrSXDWv3sD+AGmgiysO 2XjhPV+hkXqyAVrFKHQYGTdjEFF3uMtvK6heVNYTsPkjssg8+LSwCl9HegZj4jMc+RjQ QWvv3Grhgk256noKiJGYs6+MKH9AcmoVUy9iFOAcy7VbSmGkpKZ32+6mGhdweBWtzLyv YlXQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=TUC1lIkVDmMzdZSTepH+7VOIE3/7yYxg4uHu9ZQ49aQ=; b=kVIEZn8vLNjwYMekkCyE9NCmuSG2kihJWpn66+gzjc/WEtBoqgArpbSakN5onDPvGl hjn+GvrbfLebU+jg7rFNOWMX4fsCDU9JfYWKqMb7gKO+1TXvLy7VGTqMJOHoQKS7MZic kMNnAnig1O5G7VD796omq7O5RdJbyvP8h/FPTRyJ3bO34SW0yS2nfwx/Q2hjWaXECWlQ pjr01B1yCB+HUn06WKu3+eUJAJsu3wiYssyA9yiJH7xN6McjorSwe2Fn+AojFSnenbho akaeMED9V42deLRxArS8HLbFoHrVLYbBKN1kOoJ/z1PvAXVBJRKRRLpptkoXR+JdNvXt QBAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=TC7LrVgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht11-20020a170907608b00b0072ae61935afsi4957403ejc.304.2022.08.10.10.52.00; Wed, 10 Aug 2022 10:52:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=TC7LrVgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232748AbiHJRtg (ORCPT + 99 others); Wed, 10 Aug 2022 13:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232752AbiHJRtE (ORCPT ); Wed, 10 Aug 2022 13:49:04 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC9DB8C443 for ; Wed, 10 Aug 2022 10:48:55 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7388324002A for ; Wed, 10 Aug 2022 19:48:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1660153734; bh=jy6n1S3YeB0RcKIkxKT4aPXQLVnQFIHbNqQoHkyrx/E=; h=Date:From:To:Cc:Subject:From; b=TC7LrVgItVOFl+957ue9Tii1LbUJjTzOFcYT9wqYUdAk+gxs68o1Q43wkSbm/7Klj gQSxslQRRMqFhh5s3lx3er+FtZnr4CQYsYo+C5twL6OYu47Qx3Z7ETXtwb7y8AtjVh kQ091uEfMiHKRbvR1W2/qsddJfwiVv1WwweIQU9iOHzDjRurOHbUH+PJSvvobbptuV Egh/1WdRInOBHFvbAEH9zej4j3B1uMSBtIizfYOr54m6zWKY6tz7MbOJ16ygFq9sI1 kIv0qvm4t0yqD6ugP1L7DivjSgBGiVmi2qdWPdawXlf2mhb4ULJhuV8Le2bot5uado fiFv6bd1eEeDg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4M2y9K4vnfz6tmQ; Wed, 10 Aug 2022 19:48:53 +0200 (CEST) Date: Wed, 10 Aug 2022 17:48:52 +0000 From: Wilken Gottwalt To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, Jean Delvare , Jonathan Corbet , linux-hwmon@vger.kernel.org Subject: Re: [PATCH v2] hwmon: corsair-psu: add reporting of rail mode via debugfs Message-ID: <20220810194852.78536153@posteo.net> In-Reply-To: References: <20220810185658.6e27d9bd@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Wed, 10 Aug 2022 10:29:08 -0700 Guenter Roeck wrote: > On 8/10/22 09:56, Wilken Gottwalt wrote: > > On Wed, 10 Aug 2022 09:31:21 -0700 > > Guenter Roeck wrote: > > > >> On 8/10/22 06:53, Wilken Gottwalt wrote: > >>> Add reporting if the PSU is running in single or multi rail mode via > >>> ocpmode debugfs entry. Also update the documentation accordingly. > >>> > >>> Signed-off-by: Wilken Gottwalt > >>> --- > >>> Changes in v2: > >>> - fixed spelling issues in commit message > >> > >> You did not address or even provide feedback on my second comment. > > > > Oh darn ... sorry, I was quite busy and didn't really pay attention. I will > > answer the earlier mail and think about it. > > > > Though, maybe you can help me with that what keeps me so busy. Would it be okay > > to use a kthread in a hwmon driver to do sampling (500ms - 10s) in conjunction > > with HWMON_C_UPDATE_INTERVAL, or is this a strict no-no? I know it is actually > > used to set a sample/update rate in a sensor (-register), but this USB-HID > > approach is a pure polling thing. It seems to work quite and enables the driver > > to collect data quite early in the boot process. > > > > It really depends. Is it _necessary_ ? The pwm-fan driver uses a timer for > periodic polling, but that is because it has to. We should not do it purely > for convenience, and from the code I don't immediately see why it would > be necessary. Together with the polling I would add encountered lowest and highest values and the average of basically all available sensors (kind of session statistics). I know it is a bit odd, but currently these power supplies are sold again in a newer version and people really like to use them in their servers/workstations because of the "realtime" data and this driver. No joke, but I really got several requests to add this and I must admit I have quite some fun implementing it. Maybe I can provide a patch after I'm done and you can decide if this is okay or not. After all I provide an external more enhanced driver via github where some features are added, which are a clear no-go. It would be nice to have that in mainline, but I'm absolutely fine with a "no". greetings, Wilken