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 CB1E92FD7D3 for ; Sun, 29 Mar 2026 13:18:12 +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=1774790292; cv=none; b=NmPmwEzK+wgXDNwqKi3vWXG1WI6Kk29I69F4x1euPT2Pa28CsPWXwv4n/Z/rJxuZvyaY8mOPi0oEq6GoVX/Csy5xB6w6RAIAjwxXy0VvlvPrtMzS32a4DwwackuRz53KxesEd7wKwXsinAJlEOY3Wl4KiCl5q/WC2PI6iw4Q+AM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774790292; c=relaxed/simple; bh=liWPzTaprNQJSjWElKaphY1OSPl3nHzK8kczSlYNdsM=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=IbSGyFzt6jpoNTqnSdt8Kd+IyVQBRBOVs2vNXz14qrP2aJnvKv4WgY0DThpHQW7TVvxCnomRS5A1Kvdu5cFA4ijOyiI3c+Aa7uGFjZ7wVhgT028dLRYOMcN0Dyrn6hHiiMV1+ng/OGEvfE1BvwAq7uDBDIcaAdJ9XVSsS4n9G2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xYhrDNMu; 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="xYhrDNMu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 465C4C116C6; Sun, 29 Mar 2026 13:18:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774790292; bh=liWPzTaprNQJSjWElKaphY1OSPl3nHzK8kczSlYNdsM=; h=Subject:To:From:Date:From; b=xYhrDNMutF7p4FO63YMGEa2X8/9sK3vcH+c/FJ/dYFdt6YWtcEbCPRoM6+NprszCg 1atBeHsIiyB5x0MJ9dAfit99Apb9XUwkNwCy6rgzy9oLkuwgRVDwQI1CGYMS4u26Qb FvCBALD9yIIUYTe1RRCqNg4tSkjX+6xrJTzAvGl4= Subject: patch "iio: accel: adxl380: fix FIFO watermark bit 8 always written as 0" added to char-misc-linus To: antoniu.miclaus@analog.com,Jonathan.Cameron@huawei.com,Stable@vger.kernel.org From: Date: Sun, 29 Mar 2026 14:50:08 +0200 Message-ID: <2026032908-removable-swampland-19e0@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: accel: adxl380: fix FIFO watermark bit 8 always written as 0 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-linus 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 hopefully also be merged in Linus's tree for the next -rc kernel release. If you have any questions about this process, please let me know. From bd66aa1c8b8cabf459064a46d3430a5ec5138418 Mon Sep 17 00:00:00 2001 From: Antoniu Miclaus Date: Fri, 27 Feb 2026 14:43:05 +0200 Subject: iio: accel: adxl380: fix FIFO watermark bit 8 always written as 0 FIELD_PREP(BIT(0), fifo_samples & BIT(8)) produces either 0 or 256, and since FIELD_PREP masks to bit 0, 256 & 1 evaluates to 0. Use !! to convert the result to a proper 0-or-1 value. Fixes: df36de13677a ("iio: accel: add ADXL380 driver") Signed-off-by: Antoniu Miclaus Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/accel/adxl380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/adxl380.c b/drivers/iio/accel/adxl380.c index 8fab2fdbe147..a51d1d61c412 100644 --- a/drivers/iio/accel/adxl380.c +++ b/drivers/iio/accel/adxl380.c @@ -877,7 +877,7 @@ static int adxl380_set_fifo_samples(struct adxl380_state *st) ret = regmap_update_bits(st->regmap, ADXL380_FIFO_CONFIG_0_REG, ADXL380_FIFO_SAMPLES_8_MSK, FIELD_PREP(ADXL380_FIFO_SAMPLES_8_MSK, - (fifo_samples & BIT(8)))); + !!(fifo_samples & BIT(8)))); if (ret) return ret; -- 2.53.0