From: Jonathan Cameron <jic23@kernel.org>
To: "O'Griofa, Conall" <conall.ogriofa@amd.com>
Cc: "Sean Anderson" <sean.anderson@linux.dev>,
"Anand Ashok Dumbre" <anand.ashok.dumbre@xilinx.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
"Andy Shevchenko" <andy@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Simek, Michal" <michal.simek@amd.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"David Lechner" <dlechner@baylibre.com>,
"Manish Narani" <manish.narani@xilinx.com>,
"Nuno Sá" <nuno.sa@analog.com>
Subject: Re: [PATCH] iio: xilinx-ams: Fix AMS_ALARM_THR_DIRECT_MASK
Date: Mon, 25 Aug 2025 12:24:25 +0100 [thread overview]
Message-ID: <20250825122425.4c656d31@jic23-huawei> (raw)
In-Reply-To: <MN2PR12MB4223B775F240DFD91C6131138B33A@MN2PR12MB4223.namprd12.prod.outlook.com>
On Wed, 20 Aug 2025 12:31:12 +0000
"O'Griofa, Conall" <conall.ogriofa@amd.com> wrote:
> Hi,
>
> Good spot, thanks again!
Applied to the fixes-togreg branch of iio.git and marked for stable.
Thanks,
Jonathan
>
> Cheers,
> Conall.
>
> > -----Original Message-----
> > From: Sean Anderson <sean.anderson@linux.dev>
> > Sent: 15 July 2025 01:31
> > To: Anand Ashok Dumbre <anand.ashok.dumbre@xilinx.com>; Jonathan Cameron
> > <jic23@kernel.org>; linux-iio@vger.kernel.org
> > Cc: Andy Shevchenko <andy@kernel.org>; linux-kernel@vger.kernel.org; Simek,
> > Michal <michal.simek@amd.com>; linux-arm-kernel@lists.infradead.org; David
> > Lechner <dlechner@baylibre.com>; Manish Narani <manish.narani@xilinx.com>;
> > Nuno Sá <nuno.sa@analog.com>; Sean Anderson <sean.anderson@linux.dev>
> > Subject: [PATCH] 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 <sean.anderson@linux.dev>
> > ---
> >
> > 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
> > 76dd0343f5f7..552190dd0e6e 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.35.1.1320.gc452695387.dirty
>
> Reviewed-by: O'Griofa, Conall <conall.ogriofa@amd.com>
prev parent reply other threads:[~2025-08-25 11:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-15 0:30 [PATCH] iio: xilinx-ams: Fix AMS_ALARM_THR_DIRECT_MASK Sean Anderson
2025-08-20 11:24 ` Erim, Salih
2025-08-20 12:31 ` O'Griofa, Conall
2025-08-25 11:24 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250825122425.4c656d31@jic23-huawei \
--to=jic23@kernel.org \
--cc=anand.ashok.dumbre@xilinx.com \
--cc=andy@kernel.org \
--cc=conall.ogriofa@amd.com \
--cc=dlechner@baylibre.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manish.narani@xilinx.com \
--cc=michal.simek@amd.com \
--cc=nuno.sa@analog.com \
--cc=sean.anderson@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox