Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp676484pxb; Wed, 1 Sep 2021 07:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxISIpMVU5b4UyVkr+2+k1laA6IGcwwZyZtklc2SyuFQ8fZ8goIK0so1hiCNw29QjvHVrUs X-Received: by 2002:a5d:9693:: with SMTP id m19mr27280132ion.72.1630507375662; Wed, 01 Sep 2021 07:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630507375; cv=none; d=google.com; s=arc-20160816; b=q44bNJhdIBi0pfN2HfKWDymLDZzk9OIoz2n/bq/Wj3zJaMfncF47uz0PkLLt9cQjBA 9ReXx82UCI8qys+BK8DEa8URRNAbXp8OoBWwLx1ydl6e+dDJW1Kpy7LKyQ55/sFxI7fd f77QCk0PEkbiQTSPpyNomziMgU0Hvd93+Tl9NbE+4fqpx+GXyZRG2+mjMHXMBuHzl81b 9JLfYqVWsMTyiykAtpDlI1DQTmjy9KLgqTGmeHX5sWEFjjKC9Sc1/mdoWq98YcC9krTa aCESG/x30VwQa9CftwjqLtYgQi9imeoy9dMbM3DFe+LwvLGX2SUxvJZA2yfFJgS26XBa aymA== 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:reply-to:cc:from:to :dkim-signature:date; bh=GNaZ0XSxNT6YGfxq9tw2v+9H4+dnjpkUDJcg9FUrbAQ=; b=yTyWs8hkOVep4O974VAx8WlEYFno4TIE9h4oEZELQ4dnGXwQ1dbuUPfcG+xOPQ15fa jYX67GX9AwyV/IUMn/I67m1qOELyfvCVUyVVpd53RtsS+fN3EUZR/NKvj13F38YP0WzD OPra2FzX85Mrbjlb4TvK/j37mqaRzjbduFQ6pjsOl8ufCw+PN3itFG2OGTI+QtJF4RDS O+Ik8dMTIx5SSPdErp3SBc5N7IOg+hld+0CvV+3qCtJsQLNDqhGQ/q/WVAPSwCd72PFv nbkTAtc9LHfgLDIoNsY0zEPhCj5XYflrmGeMcPoYBM0KPJ/7YBgPjlU20NbrG3nfSLjA vUbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=dRYrBefG; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si1553714jaf.71.2021.09.01.07.42.40; Wed, 01 Sep 2021 07:42:55 -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; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=dRYrBefG; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235018AbhIAOlS (ORCPT + 99 others); Wed, 1 Sep 2021 10:41:18 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:40969 "EHLO mail-0201.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234001AbhIAOlS (ORCPT ); Wed, 1 Sep 2021 10:41:18 -0400 Date: Wed, 01 Sep 2021 14:39:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1630507188; bh=GNaZ0XSxNT6YGfxq9tw2v+9H4+dnjpkUDJcg9FUrbAQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=dRYrBefGx9SXwXn8u7BFhiUtgh3E1gt8gM/4fpGtqbyS0wYB1I5//pGJRcFLua3R0 dbnI8y9FjMDNTxXyI+Irnv3dwdImBtlUfDZh3EYvlcUMVyIOSYOqKuZ3ivc9RTVATn /Dn4syyOaT6zt5RsGeq5ZIL05yvuaNlDoHtCdjyo= To: Luke Jones From: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Cc: linux-kernel@vger.kernel.org, hdegoede@redhat.com, linux@roeck-us.net, platform-driver-x86@vger.kernel.org Reply-To: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Subject: Re: [PATCH v7] asus-wmi: Add support for custom fan curves Message-ID: In-Reply-To: <1Y4PYQ.BFC57KCSOTUT1@ljones.dev> References: <20210830113137.1338683-1-luke@ljones.dev> <20210830113137.1338683-2-luke@ljones.dev> <1o94oJFiia_xvrFrSPI_zG1Xfv4FAlJNY96x39rg-zX3-3N5Czw4KmTiJtzCy1So7kYXLu0FTkRkmwUUudeuTyLHSsx5sJGhfsZaYrXKEic=@protonmail.com> <1Y4PYQ.BFC57KCSOTUT1@ljones.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Hi Barnab=C3=A1s, > > I did another refactor using hwmon_device_register_with_info() and > HWMON_CHANNEL_INFO(). I'm unsure if this is what you were looking for > so I'm going to attach the patch instead of submitting as a V8 for now. > > My main concern as that the use of the above removes the > pwm1_auto_point1_pwm + pwm1_auto_point1_temp format and gives two > hwmon, one per cpu/gpu fan with: > > device power > fan1_input subsystem > fan2_input temp1_input > fan3_input temp2_input > fan4_input temp3_input > fan5_input temp4_input > fan6_input temp5_input > fan7_input temp6_input > fan8_input temp7_input > in0_enable temp8_input > name uevent > > cat -p /sys/devices/platform/asus-nb-wmi/hwmon/hwmon7/name > asus_cpu_fan_custom_curve > > I've named the root name of each as descriptive as possible to convey > exactly what each is > > Oh and `sensors` now shows: > > asus_cpu_fan_curve-isa-0000 > Adapter: ISA adapter > fan1: 8 RPM > fan2: 10 RPM > fan3: 18 RPM > fan4: 20 RPM > fan5: 28 RPM > fan6: 34 RPM > fan7: 44 RPM > fan8: 56 RPM > temp1: +0.0=C2=B0C > temp2: +0.1=C2=B0C > temp3: +0.1=C2=B0C > temp4: +0.1=C2=B0C > temp5: +0.1=C2=B0C > temp6: +0.1=C2=B0C > temp7: +0.1=C2=B0C > temp8: +0.1=C2=B0C > > > > FYI, the pwmX_enable attributes can be created by the hwmon > > subsystem itself if you use [devm_]hwmon_device_register_with_info() > > with appropriately populated `struct hwmon_chip_info`. > > So when you say this, did you mean *just* for the pwmX_enable > attributes? > [...] Yes, that's right. Best regards, Barnab=C3=A1s P=C5=91cze