From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796221137; b=EJId1FGqst6MRFM5d4qneO2c0VApChL76IguAzwjzwicVsra/+cPRjJkSpAduZLyxLd6 1yL03nVe+4577QrKiH7Io/vFGp5jgi9LZgOsfPLrko6ywIv2dMyns6RyQHgdGw3y2l/wU CASJb4ITvzGG2PcrjSI2Q4GOE/IqucsZJr1albVzbM82ssOIcQDcW2s+gQCNgMiqFj/Hc OcmrlY44MfAqMLhTCVsh+gTZ4KGbXQlfXN2IWMWKoO9Z/2OafesAjSpoBuB7KG+tGPP5k UfsyDwwitjl5Le4I62PEWPjXLlWIECCTySwvBm7NQgSv0uKW29sHmtxNp2KIfn+tJwQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221137; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=AR0UBAcDm1rMVIewecfxL4xbQ2aEN03Xb9Pg7PS0yPE=; b=5KlYXYs16X7VaSrx8yPvl/Sf83AXbOl6prQUH65RGjgljIHg8j1bqtm66dYeRa3ZcvOo jgZJxcGyzyi50pOeYj7ZzMqA5JYyXjLAg7+H8bXYcqBiwE9FYHwG7cVTuY29u53m5r7ul tPmE/BiinOfTCJMBzwvtiFKEN5sf1iotInjQ/E25Aai9wrdEMB1HOxHp0GWmBTp+o1Y0o 1916AnNsWAqs7i1h7dHdBg+X3IoAuwDKMBKd+n7FRS1/2W34CwuSNhjm5nwFqwoyz9SGr 184fAhvyrTaa0MCaEVBbKJKeuV+dx+SYBoXH5DmseUuJSzKRu20glO6KnP6ih0FYtXw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=LK0oZVi5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37B65606A323 for ; Wed, 2 Dec 2026 14:18:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=LK0oZVi5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F28A71F00896; Wed, 2 Dec 2026 14:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796221136; bh=AR0UBAcDm1rMVIewecfxL4xbQ2aEN03Xb9Pg7PS0yPE=; h=Subject:To:Cc:From:Date; b=LK0oZVi5v7Nj0mA4kFUZ+XDufq9Gt6cAo8F8wUd4LQP5piBFnvU91galFMH/RkU2n SpwfX9cUoNJyVOkIwpCZSHMnuBd1AL6tNetCkvSnJLfwSH622FqJGThV6Gp6UHRyIM 4XzFKQ0w49g9b+90P2Ff5UpGXwCDKNrxO6NPe5cs= Subject: FAILED: patch "[PATCH] hwmon: (nct6775) Fix target temp and tolerance for" failed to apply to 7.3-stable tree To: linux@roeck-us.net,glance@ac2.se,sashiko-bot@kernel.org Cc: From: Date: Wed, 02 Dec 2026 14:09:40 +0100 Message-ID: <2026120240-citrus-penpal-283b@gregkh> X-Mailing-List: stable@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=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 7.3-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.3.y git checkout FETCH_HEAD git cherry-pick -x 73d857b33cdfaf35f8d3f833b36745d91c18db13 # git commit -s git send-email --to '' --in-reply-to '2026120240-citrus-penpal-283b@gregkh' --subject-prefix 'PATCH 7.3.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 73d857b33cdfaf35f8d3f833b36745d91c18db13 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Mon, 9 Nov 2026 17:54:35 -0800 Subject: [PATCH] hwmon: (nct6775) Fix target temp and tolerance for NCT6106/6116/6126 In nct6775_probe(), the nct6106, nct6116, and nct6126 chip cases leave target_temp_mask, tolerance_mask, and speed_tolerance_limit zero-initialized. As a result, reading pwm*_target_temp from sysfs always returns 0, writing to pwm*_target_temp, pwm*_temp_tolerance, pwm*_crit_temp_tolerance, or fan*_tolerance clamps user-supplied values to 0, and pwm_update_registers() fails to clear existing tolerance bits in REG_FAN_MODE when updating fan control modes. Initialize target_temp_mask to 0xff, tolerance_mask to 0x07, and speed_tolerance_limit to 63 for NCT6106, NCT6116, and NCT6126, matching the hardware register layout shared with NCT5525 and NCT6776+. Fixes: 6c009501ff20 ("hwmon: (nct6775) Add support for NCT6102D/6106D") Fixes: 29c7cb485b32 ("hwmon: (nct6775) Integrate new model nct6116") Fixes: 437b3c2a4bdc ("hwmon: (nct6775) Add support for NCT6126D") Cc: stable@vger.kernel.org Reported-by: Sashiko Link: https://sashiko.dev/#/bug/linux-76f191d0-4c79-4982-887e-e5c9a2ed7136 Cc: Anton Lundin Signed-off-by: Guenter Roeck diff --git a/drivers/hwmon/nct6775-core.c b/drivers/hwmon/nct6775-core.c index ac6f3f0ca2b3..123d62a87a43 100644 --- a/drivers/hwmon/nct6775-core.c +++ b/drivers/hwmon/nct6775-core.c @@ -3572,6 +3572,9 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, data->fan_from_reg = fan_from_reg13; data->fan_from_reg_min = fan_from_reg13; + data->target_temp_mask = 0xff; + data->tolerance_mask = 0x07; + data->speed_tolerance_limit = 63; data->temp_label = nct6776_temp_label; data->temp_mask = NCT6776_TEMP_MASK; @@ -3648,6 +3651,9 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, data->fan_from_reg = fan_from_reg13; data->fan_from_reg_min = fan_from_reg13; + data->target_temp_mask = 0xff; + data->tolerance_mask = 0x07; + data->speed_tolerance_limit = 63; data->temp_label = nct6776_temp_label; data->temp_mask = NCT6776_TEMP_MASK; @@ -3725,6 +3731,9 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, data->fan_from_reg = fan_from_reg13; data->fan_from_reg_min = fan_from_reg13; + data->target_temp_mask = 0xff; + data->tolerance_mask = 0x07; + data->speed_tolerance_limit = 63; data->temp_label = nct6776_temp_label; data->temp_mask = NCT6776_TEMP_MASK;