From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8A64284693 for ; Mon, 13 Jul 2026 12:52:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783947166; cv=none; b=V0kIkYv8H9sRjdrb6YgcsOh5VZ6xm0pYpv/SSvERWxdg8vnJeC+fqdaH1kXKwGr39bvS2j8vnU6QWwjlIn+DAGG2bo7+WxpQNlhXT5Fd+eFFtdyYsKh0bKcxT9YdrTRoWUQm19c4euhE0/2VJ234TjyqpbibG6ye+QH9po2Iy/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783947166; c=relaxed/simple; bh=UOUa1AmciWyCbH/R/1UBjnRpnnxM2Qnu7IJWP4ZOHH4=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=AKhJgz4iYEiPXefqlH+5lFrbJ7LinNj/31dS0GN+tKmGIVxQq3FhE41oBv2pvQrJ1Cqv4O3u7+c4kcPvRHzT9Qk24hqvXim9oWIGuj+F3549kG7UtWqaiDLZnU0MpTqKRFRXQxBVNpH2cIo9DiKVyAsjpmkuCG3gcNbSOBzwnU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Gas3G27x; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Gas3G27x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CB851F000E9; Mon, 13 Jul 2026 12:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783947165; bh=PP9TdgEdGqg2TpDBviLP7p3JPez+JqudKBEwpgekm58=; h=Subject:To:Cc:From:Date; b=Gas3G27xpBXpsYR0j+TR9DkQoN9251JBllv1zw9pZyw/qqHkLGHcJ6af6wzS82u1E Er1gqMvUqxTbiFYxp/MCKjhT/xrZvNNxt/ihnKi7nmVNm9e50UqZusgltfWGRo4LuX avmLy9/mHE/VPlz5eTXs4kTBFvoBrcN7PzbRLsuw= Subject: FAILED: patch "[PATCH] iio: temperature: ltc2983: Fix n_wires default bypassing" failed to apply to 5.10-stable tree To: liviu.stan@analog.com,Stable@vger.kernel.org,jic23@kernel.org Cc: From: Date: Mon, 13 Jul 2026 14:52:27 +0200 Message-ID: <2026071327-overbook-grandly-b911@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 5.10-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-5.10.y git checkout FETCH_HEAD git cherry-pick -x 434c150752675f44dc52c384a7fa22e5176bc35a # git commit -s git send-email --to '' --in-reply-to '2026071327-overbook-grandly-b911@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 434c150752675f44dc52c384a7fa22e5176bc35a Mon Sep 17 00:00:00 2001 From: Liviu Stan Date: Mon, 25 May 2026 19:39:28 +0300 Subject: [PATCH] iio: temperature: ltc2983: Fix n_wires default bypassing rotation check When adi,number-of-wires is absent, n_wires is left at 0. The binding documents a default of 2 wires, matching the hardware default. However the current-rotate validation checks n_wires == 2 || n_wires == 3, so with n_wires = 0 the guard is bypassed and adi,current-rotate is accepted for a 2-wire RTD. Initialize n_wires = 2 to match the binding default and ensure the rotation check fires correctly when the property is absent. Fixes: f110f3188e56 ("iio: temperature: Add support for LTC2983") Signed-off-by: Liviu Stan Cc: Signed-off-by: Jonathan Cameron diff --git a/drivers/iio/temperature/ltc2983.c b/drivers/iio/temperature/ltc2983.c index 38e6f8dfd3b8..1f835e326b93 100644 --- a/drivers/iio/temperature/ltc2983.c +++ b/drivers/iio/temperature/ltc2983.c @@ -741,7 +741,7 @@ ltc2983_rtd_new(const struct fwnode_handle *child, struct ltc2983_data *st, struct ltc2983_rtd *rtd; int ret = 0; struct device *dev = &st->spi->dev; - u32 excitation_current = 0, n_wires = 0; + u32 excitation_current = 0, n_wires = 2; rtd = devm_kzalloc(dev, sizeof(*rtd), GFP_KERNEL); if (!rtd)