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=1796221147; b=jce0gxnnEp74GRlpVt083Yk0li7g57bVt/ht7s4gM1emxd9POxUWqTbK+QOwBqHJtWXG dURy21zMK7v70qWp4fmwaWjalZxEm/Y8eS4QC6FmKZrOkl0isehRK31rAFO/zNN5gTzvB m6yXeueN5IGPJxGA9FXzuML9XE6D52M52HxZKCnP0TwqH5zIDYGjXRIZyRSl95LWpyl22 mBa32nAzSpwnB+462b89kkD5NfvAcV3U1J+y5h+wB1OkvD2U/y5C79LdUV4V0/y28PzYV 1lWY7oCpcxKoDTMgPrTkEM0Mf7BSskYPWs3KGL5cdj+VFnQXJc0zZ10xE9JUZNWdccg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221147; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=9oDNCP6leT17n248+wGDwvkyjl2dY1U+hFufkbT+DDg=; b=OgTUEfSuWtbsoacccZk3BcY6cQwWB8WrUo0XZ2ra2s6O0EHPPC5UyCIdbedsU6I6U+o6 eiOihGPnynidW170KsVTBMP+paH6ECzTA+Va4EyuF7h35ri5JDl/HJh7qw5Q3TvX7QxAT SRN//D+OEOJWRkr//ib3smdqBFxSnr0jpfj6KYLPCRUFeCNSk669nj5578Tf94KDaIhtg w5+11Fo20zOLsvrF024NjLFVpW6gJSN5TlhdgfNB4c4fZ28TVLLB3fSPKXhexOA3AjEBW 1XkebnX9JGuKw6JUnjJB4lKHIIjkQmeivHMMH6rxeBJ5YzA+Tr8w0YTFE0VlMOAx8SQ== 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=iFrw07o5; 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 F13A3606A31A for ; Wed, 2 Dec 2026 14:19:06 +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=iFrw07o5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1D271F0089B; Wed, 2 Dec 2026 14:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796221146; bh=9oDNCP6leT17n248+wGDwvkyjl2dY1U+hFufkbT+DDg=; h=Subject:To:Cc:From:Date; b=iFrw07o5q25ohkjfeRnfRPg963RggfUfpo/Rl9IIS2pdxlv9dt7k+zhNnOCBQMar1 MT9uT6tDhXwlVgOkoxErl8aDLhp6CwpeSTQodKNHShsyRBZSG+giBb1WX8B6cPWnu5 2Z6T1dbBZ5dnShG7m79ViBDZX6YPWCKnRYeeQ8cA= Subject: FAILED: patch "[PATCH] hwmon: (nct6775) Fix target temp and tolerance for" failed to apply to 6.1-stable tree To: linux@roeck-us.net,glance@ac2.se,sashiko-bot@kernel.org Cc: From: Date: Wed, 02 Dec 2026 14:09:42 +0100 Message-ID: <2026120242-flick-armful-dbb4@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.1-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.1.y git checkout FETCH_HEAD git cherry-pick -x 73d857b33cdfaf35f8d3f833b36745d91c18db13 # git commit -s git send-email --to '' --in-reply-to '2026120242-flick-armful-dbb4@gregkh' --subject-prefix 'PATCH 6.1.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;