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 B7FDE64 for ; Mon, 13 Jul 2026 12:52:19 +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=1783947140; cv=none; b=LofAri/5qNheOImZvH9AByNUlBv1VN/pF7ehbJoxDSqFNqSg33q9ZicbFrxP8clIrjJu42M9C4G5eWe98ErsIrm0hAXX73M9nRQHB5x+iJ+/q/t2AbOiV+BGlTHDsXd1a85c1kGZRvumXc6Wv6cDn9hOmws55MfDAiYn3sa6df0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783947140; c=relaxed/simple; bh=W73DXZX2FpOTFrwwr/nHvHR+Rnw3lA9eQqK463Txz/U=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=rwITibhcLBzPbgCEAExEv+J9WeHXpYufriBCcwOz2FXjZh7ZSiY1YuU/Qi7b/JJdQbxAqV8QwkBwPslLfy/mCPG70dvLdNEFJ5IBluuKbL/MR8kjbVcCOJlcp8O+1t6e/CMONfKvehdVHgOnYn7jfkSSWFjjdwik3cidS7nseLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HLLL+Koa; 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="HLLL+Koa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D33131F000E9; Mon, 13 Jul 2026 12:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783947139; bh=JpaaSNIUyIRTpeIck4VNcfa7g65FQ1aEd8GaD8NXufQ=; h=Subject:To:Cc:From:Date; b=HLLL+Koayn0UpI3/8GXrlirWFOR9HfjaaVUDvmSB712uSdK+sQmJrGD3eGZ0KxETe GZtf4BBrqp91239pD8a3x2MYbfRjSmm6lt4DKm6/2xaG/UuseAHFblKt7KtDXeReul ET2OBrpISkb0wXvByLKmgv1HzOMgwv6pAy8yDUw8= Subject: FAILED: patch "[PATCH] iio: temperature: ltc2983: Fix n_wires default bypassing" failed to apply to 6.1-stable tree To: liviu.stan@analog.com,Stable@vger.kernel.org,jic23@kernel.org Cc: From: Date: Mon, 13 Jul 2026 14:51:57 +0200 Message-ID: <2026071357-boat-germproof-a30c@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 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 434c150752675f44dc52c384a7fa22e5176bc35a # git commit -s git send-email --to '' --in-reply-to '2026071357-boat-germproof-a30c@gregkh' --subject-prefix 'PATCH 6.1.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)