From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795976741; b=2s7p3hE+5vJTTuFG6fj6e9YxiLram175/KMXf8HDnCQ0OrTOoqFa20jeQbZbX4tOPF2c 7JuTJx5ODPzQOaDbxA1GTdYFD/krtceZmbIRn/1tg2w7+5UcIGBdnaQQBIbNh4c8/K2KU gJ5LmTFLJ+QUgDQhYlhy9I/Leoc44++rTUl6PKFNh7uMgcGEumw63LMxMNbt2NFoIaMjw FI2vczU5+MFP9MXTClZl40E1ZdU6/AwfBUs14cciZa2D0j2Zi7rCaSa6i+BDQlSoCWN93 VTzPvx0XY+N2Fjwv7wmQ85m+2Wobnx6GWgppzDkGndt59Em+A+tT2GYVWwXcKitgE6A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795976741; h=DMARC-Filter:Received:Received:X-Authority-Analysis:DKIM-Signature: Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:X-AntiAbuse:X-AntiAbuse: X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-BWhitelist:X-Source-IP: X-Source-L:X-Exim-ID:X-Source:X-Source-Args:X-Source-Dir: X-Source-Sender:X-Source-Auth:X-Email-Count:X-Org:X-Source-Cap: X-Local-Domain:X-CMAE-Envelope; bh=rbgFQqA0GYa/LuDeLCEgcHVjZGfOtql+HUpKwdKy42I=; b=JXmN4bTzbTkFlD7Xx5NJj17CvvhSW9YebGW0ZQ8l1l3X0PXNoerMJlVmJqu1qWZySWTu 4ZEAsZKam95EHdEmkniKwLpLFj348JUgrFmHElxHqicnLMRXG2kyGBhxrPjXfaC7LXHPM +uIz1s2VatmMpkPfVhQbPmqlhpffyDSCJzzNsmankJDeu/DdorhX44L+StgvSVKCuVHlE OvxpCe12Lkk449zG9RKBCRaWygFkKw4SrJ8cOvEQfIPmbLOd8LvSUsoH+JEgES60DOQxU Gf3/NRWak9TZ1K+SSwp8/r2884R2grZAsKow8ExmHusjmoOus1JDAaXRNnFM2M5BOEQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=roeck-us.net; spf=fail smtp.mailfrom=roeck-us.net; dkim=pass header.d=roeck-us.net header.i=@roeck-us.net header.a=rsa-sha256 header.s=default header.b=JNMs6kF+; arc=none smtp.remote-ip=35.89.44.35 Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3976D606A31C for ; Sun, 29 Nov 2026 18:25:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3976D606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=roeck-us.net header.i=@roeck-us.net header.a=rsa-sha256 header.s=default header.b=JNMs6kF+ Received: from eig-obgw-5001b.ext.cloudfilter.net ([10.0.29.181]) by cmsmtp with ESMTPS id XI28xIcPcRiNxXjamxBttD; Sun, 29 Nov 2026 18:25:40 +0000 Received: from 162-215-252-36.unifiedlayer.com ([208.91.199.152]) by cmsmtp with ESMTPS id XjalxElHUxmi7XjamxRI79; Sun, 29 Nov 2026 18:25:40 +0000 X-Authority-Analysis: v=2.4 cv=KuFN2XWN c=1 sm=1 tr=0 ts=6b0c6e24 a=QNED+QcLUkoL9qulTODnwA==:117 a=2cfIYNtKkjgZNaOwnGXpGw==:17 a=kj9zAlcOel0A:10 a=zJRp6_cAMcgA:10 a=M0FbrtG7MMAA:10 a=y9j1hLIKKI93KUnajiwA:9 a=CjuIK1q_8ugA:10 a=KPbNTLLc3YvdawN95zVk:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rbgFQqA0GYa/LuDeLCEgcHVjZGfOtql+HUpKwdKy42I=; b=JNMs6kF+c0ckFeUukRw1f6iX9q LlS4t1M/SCWc1m+aYEVGRDWmM8C8bF3PtnFTQzJ955krZgmCRj/dYWcxx9Bht0gdlHaZdeHAzfMQP TyF0E3dAUflNTTa74dIRqMGJJfn7spmgF2e8MraRrGbBbwGp6jHhb9GexOzokmEjlymF86x16cYFq fDBjbuOXynoc+Xnr9xU53RLOKl6/vl4/GC8svGuNU7CCIsuxTCwSRzVY5lNE3D0qwGbaVjlhgN4+8 qq5xwxImMT0Z6brAUj7wKQyvk/HzvM3iM/naBoZGhnr80O+bfq4xrPBZwvxz+feIDirOpLJw9R/6J DmN1p5sg==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:57242 helo=server.roeck-us.net) by bh-25.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.2) (envelope-from ) id 1xXjal-00000001rTe-2Awv; Sun, 29 Nov 2026 23:55:39 +0530 Date: Sun, 29 Nov 2026 10:25:38 -0800 From: Guenter Roeck To: Tomasz Bojanowski Cc: linux-hwmon@vger.kernel.org, Hamza Mahfooz , Jonathan Corbet , Shuah Khan , Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: (nct6683) Return -EBUSY if a fan curve is no longer supported Message-ID: References: <20261129174305.813063-1-tomasz@bojanowski.me> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261129174305.813063-1-tomasz@bojanowski.me> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-BWhitelist: no X-Source-IP: 108.223.40.66 X-Source-L: No X-Exim-ID: 1xXjal-00000001rTe-2Awv X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 108-223-40-66.lightspeed.sntcca.sbcglobal.net (server.roeck-us.net) [108.223.40.66]:57242 X-Source-Auth: guenter@roeck-us.net X-Email-Count: 1 X-Org: HG=direseller_whb_net_legacy;ORG=directi; X-Source-Cap: cm9lY2s7YWN0aXZzdG07YmgtMjUud2ViaG9zdGJveC5uZXQ= X-Local-Domain: yes X-CMAE-Envelope: MS4xfLpwh8IzRU6hnhBM3qBJJpwl9udiNJ3jIrGdt7owm9ofHEdVohQpClJXVsE/F6pwiO0V+s+RnDy7HUAClgHKllF9SEsmxN6x+BxokOhvzid53pC72vSU lqB+s92GmSV+PbMbQpO74zqFdcHxP04FS12V6j7uCZo+7TiQON+1PFRMT9z8xq0CeVJ+59aE+wPJ1uM9MlJt0jFOVxLP+KeVyzXywHVJsw6dSDqezDDoF3Uw On Sun, Nov 29, 2026 at 06:43:05PM +0100, Tomasz Bojanowski wrote: > Before writing a point of a fan curve, the driver checks that it still > supports the curve which is set in the EC. If it does not, nothing is > written, so this is not an I/O error. Return -EBUSY instead of -EIO. > > Writing pwmN_auto_channels_temp already returns -EBUSY if its check of the > current temperature source fails. > > -EIO is still returned if the EC does not take the new curve. Document > both, and that the check includes whether the curve sets a duty cycle. > > Compile tested. > > Signed-off-by: Tomasz Bojanowski Applied. On a side note, I tested the recent changes on boards with NCT6683_CUSTOMER_ID_MSI3 (MAG B650M MORTAR WIFI (MS-7D76) and MAG B650 TOMAHAWK WIFI (MS-7D75)). This is what I get on the Tomahawk board: pwm1:87 pwm1_auto_channels_temp:1 pwm1_auto_point1_pwm:51 pwm1_auto_point1_temp:0 pwm1_auto_point2_pwm:89 pwm1_auto_point2_temp:45000 pwm1_auto_point3_pwm:178 pwm1_auto_point3_temp:65000 pwm1_auto_point4_pwm:255 pwm1_auto_point4_temp:80000 pwm1_auto_point5_pwm:255 pwm1_auto_point5_temp:80000 pwm1_auto_point6_pwm:255 pwm1_auto_point6_temp:80000 pwm1_auto_point7_pwm:255 pwm1_auto_point7_temp:80000 pwm1_enable:2 pwm1_step_down_time:100 pwm1_step_up_time:100 pwm2:255 pwm2_auto_channels_temp:1 pwm2_auto_point1_pwm:255 pwm2_auto_point1_temp:32000 pwm2_auto_point2_pwm:255 pwm2_auto_point2_temp:32000 pwm2_auto_point3_pwm:255 pwm2_auto_point3_temp:32000 pwm2_auto_point4_pwm:255 pwm2_auto_point4_temp:32000 pwm2_auto_point5_pwm:255 pwm2_auto_point5_temp:32000 pwm2_auto_point6_pwm:255 pwm2_auto_point6_temp:32000 pwm2_auto_point7_pwm:255 pwm2_auto_point7_temp:32000 pwm2_enable:2 pwm2_step_down_time:100 pwm2_step_up_time:100 pwm3:87 pwm4:153 pwm5:79 pwm6:153 pwm7:153 pwm8:97 and: fan10_input:0 fan10_min:0 fan10_pulses:2 fan1_input:825 fan1_min:0 fan1_pulses:2 fan2_input:0 fan2_min:0 fan2_pulses:2 fan3_input:775 fan3_min:0 fan3_pulses:2 fan4_input:0 fan4_min:0 fan4_pulses:2 fan5_input:707 fan5_min:0 fan5_pulses:2 fan6_input:0 fan6_min:0 fan6_pulses:2 fan7_input:0 fan7_min:0 fan7_pulses:2 fan8_input:598 fan8_min:0 fan8_pulses:2 fan9_input:0 fan9_min:0 fan9_pulses:2 On the Mortar board a fan is connected to pwm2/fan2, so the data for that channel works as expected. pwm control is enabled on all fans. I don't know if that means that pwm3+ have a different register set. Either case, I figured that it would be too risky to enable pwm control for these boards; I just wanted to let you know. Thanks, Guenter