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=1796221143; b=FFW+SEbg/MY4ZtY6j/RIOjhXIIuJUtM+0qGBANr5VJ06vzRtGySwpa6h9F+90BbzwbNE RljnLCQys+4og39oGOBhXgOH91mdm39z3b075Ue8kf9kxDvNY9RGYBtJ6jMbv6v7G1uQI aQR1LS3b0env/mvafp05+gSSMWS2/lYn1RFjMZeiae7NYLR0WZti/OuQf5IqBS9nw7uHy Jz/e9ckMgKfNg6rdpr52niVB9AJEBQria+GmzPFD43wPpl+4V8Y/NP1U2eWk87Qiqtp/H OkdN3KcfCASzqiwUBKOlWtlb5qvHZsfoBHQs1QtBQmBSnsasnoreOj6VqQWPU0rm88w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221143; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=7aAMHx9Jxtrb5cAzcNpoUBnaOf/x8rCue2iTdB7Dnak=; b=2z4MJeuKYpZs6mJmmbPpRoGO5ORnEsht3xAiXRDfs/rvN0xtmr5kur7SVJNdv7ZbcmIw aRr7FJ/gxTgb1Dl/GSSAXExVcp4qEkW5qF5KGE+t91hpg5z9h6JyAFYyIwm/+8wPtvSRg J5XbwJKnvi3+oG6NDstg2snvioFeRptzPGyW6r+pXeOwYrChKzKV7a6UwQcIrShzKv//6 m7W2ginPjprXukyljY3bNMN34oS6VI9XGvUlycnQz5GcG2f0ZuHxuDLJdWbjWerbQ8jIr L/GYt7acV3sYoevTO8UQYFt5ObodfCufNxFbpU8TmetgxYtfla22Fm+Xcx78wcjzCGQ== 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=OdMAdWll; 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 C9BC4606A31A for ; Wed, 2 Dec 2026 14:19:03 +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=OdMAdWll Received: by smtp.kernel.org (Postfix) with ESMTPSA id A77DA1F0089B; Wed, 2 Dec 2026 14:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796221143; bh=7aAMHx9Jxtrb5cAzcNpoUBnaOf/x8rCue2iTdB7Dnak=; h=Subject:To:Cc:From:Date; b=OdMAdWll5N+PJnUttu4QGvmAC3eGxCcxCAJgD7+62zunJxJ9O6wJ7VYN5SUR4c1Jw mCBt/ha8BB2L8/GClgBuwNUkrsOWhGQsOE6dmjGElIWCGabe/jrE/KP7MXJ8UI02v3 u+w7NmIfWtC5OWDtDzojtcboZHigVnNzzjsJJe2Y= Subject: FAILED: patch "[PATCH] hwmon: (nct6775) Fix target temp and tolerance for" failed to apply to 6.18-stable tree To: linux@roeck-us.net,glance@ac2.se,sashiko-bot@kernel.org Cc: From: Date: Wed, 02 Dec 2026 14:09:41 +0100 Message-ID: <2026120241-important-happiness-8dac@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 6.18-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-6.18.y git checkout FETCH_HEAD git cherry-pick -x 73d857b33cdfaf35f8d3f833b36745d91c18db13 # git commit -s git send-email --to '' --in-reply-to '2026120241-important-happiness-8dac@gregkh' --subject-prefix 'PATCH 6.18.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;