From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D9607136E3F for ; Tue, 16 Sep 2025 08:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758011620; cv=none; b=Nf5IRcxH+MEKplRoIFZJdTc2w0e2ElpLiARaaAr3vd3e6eydPThl9gmUeZsUus8KzchyrprD/0GXBH/+EVOQGBZg/ObNIM7tfsgDlByG7kcqWj0clUVLnjJZuqX9bX8p0BLt/Umqy1vhXHgVTszgTkOMiIwltifULvgo20wpjaw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758011620; c=relaxed/simple; bh=I/roj4rJ5xkvDFSM+qK7oyoE/JP8VQq10KmtzAdAtuc=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=VfEZpOfASOF+p/B2s/etigt5JBiRzw+sMNfG2MleT0MHlhONbUN+3BLOg1E4tIxUTM5rpNcMAJJOF++I5KrismEzHUtNQsDhBvMDr8fSuHCE6wkgHOs+fpU8rhs7zd1RrYt1qMKrNQwhCDVaJZ3X/KuMkAF/dMK2c01kCDfLDx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KVE/WuR6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KVE/WuR6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A079C4CEEB; Tue, 16 Sep 2025 08:33:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758011620; bh=I/roj4rJ5xkvDFSM+qK7oyoE/JP8VQq10KmtzAdAtuc=; h=Subject:To:From:Date:From; b=KVE/WuR6YSTs1W59vxAlHl6HQ1mB2JNBZet1r+ZzVvvSSb9bLHZWhlv9zgC47URuK oyMszKJrnwLYcVv5FvjCr6jqjGNvIv1MleJ24ZfDsFnP2VmjrSE+/62bH9lxnghOXg RvfvzNPGQiF8mGTN4376HTO5RXavI+QkJZUMmBpI= Subject: patch "iio: xilinx-ams: Fix AMS_ALARM_THR_DIRECT_MASK" added to char-misc-next To: sean.anderson@linux.dev,Jonathan.Cameron@huawei.com,Salih.Erim@amd.com,Stable@vger.kernel.org,conall.ogriofa@amd.com From: Date: Tue, 16 Sep 2025 10:33:00 +0200 Message-ID: <2025091600-galley-stingy-5ff6@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 This is a note to let you know that I've just added the patch titled iio: xilinx-ams: Fix AMS_ALARM_THR_DIRECT_MASK to my char-misc git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git in the char-misc-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. >From 1315cc2dbd5034f566e20ddce4d675cb9e6d4ddd Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Mon, 14 Jul 2025 20:30:58 -0400 Subject: iio: xilinx-ams: Fix AMS_ALARM_THR_DIRECT_MASK AMS_ALARM_THR_DIRECT_MASK should be bit 0, not bit 1. This would cause hysteresis to be enabled with a lower threshold of -28C. The temperature alarm would never deassert even if the temperature dropped below the upper threshold. Fixes: d5c70627a794 ("iio: adc: Add Xilinx AMS driver") Signed-off-by: Sean Anderson Reviewed-by: O'Griofa, Conall Tested-by: Erim, Salih Acked-by: Erim, Salih Link: https://patch.msgid.link/20250715003058.2035656-1-sean.anderson@linux.dev Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/adc/xilinx-ams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/xilinx-ams.c b/drivers/iio/adc/xilinx-ams.c index 180d4140993d..124470c92529 100644 --- a/drivers/iio/adc/xilinx-ams.c +++ b/drivers/iio/adc/xilinx-ams.c @@ -118,7 +118,7 @@ #define AMS_ALARM_THRESHOLD_OFF_10 0x10 #define AMS_ALARM_THRESHOLD_OFF_20 0x20 -#define AMS_ALARM_THR_DIRECT_MASK BIT(1) +#define AMS_ALARM_THR_DIRECT_MASK BIT(0) #define AMS_ALARM_THR_MIN 0x0000 #define AMS_ALARM_THR_MAX (BIT(16) - 1) -- 2.51.0