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 5B716355024 for ; Tue, 27 Jan 2026 13:10:21 +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=1769519421; cv=none; b=NorpgqVWpB3vULcu21u9ch7u9O/GPynYLhfDLgyytY45GIVIXQZYcK+YXBJtg8+ghq1E77jsjHh08yS/4A3U05S1lFv62/iPZG+5AOGk3SCXJumjkWnEiTw1PhxbDmVcROvTEMilMs75QbfbJUaQLsc33JlZCz3WJZDQRaXF0rs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769519421; c=relaxed/simple; bh=b2VWY0NiHyJWpmV7ZLrwLClpwtM9A2J8MOx9P+B/5ZM=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=R39cdiy+bYDw7KfGacQO//ZBR0NXX+eVVJrOw3AFAxxLJuLjYtbrK/S2ySRvuGrVYDCHp23XF2F/dd4xe7i+KK7UB2ZpJhUxD1NKWNBpDxk+kl8oMHvVIB3l3dAujavRfdq/6r73lQwndbZkpHblNrTa6LfpQHOJnk5d+cTyCZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JSl89M5P; 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="JSl89M5P" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84FF5C116C6; Tue, 27 Jan 2026 13:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769519421; bh=b2VWY0NiHyJWpmV7ZLrwLClpwtM9A2J8MOx9P+B/5ZM=; h=Subject:To:Cc:From:Date:From; b=JSl89M5PH7yWZ5wJFCetct6g0USY/GlJZR0Z5MHO/ZTn18wu0YicFdOEXgpN6sKS0 NUHuJkDM3aEMEz7nv3saFgmw9vOmYUnI9LEiEFK4tX9cbsbtuVBV1WV3AXar2ZsR8z PnLkGner9zIwDUVvqBbngi8n/Ez+PQSmtI6y0QUs= Subject: FAILED: patch "[PATCH] iio: chemical: scd4x: fix reported channel endianness" failed to apply to 6.1-stable tree To: fiona.klute@gmx.de,Jonathan.Cameron@huawei.com,dlechner@baylibre.com,stable@vger.kernel.org Cc: From: Date: Tue, 27 Jan 2026 14:10:13 +0100 Message-ID: <2026012713-ethically-lily-296c@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 81d5a5366d3c20203fb9d7345e1aa46d668445a2 # git commit -s git send-email --to '' --in-reply-to '2026012713-ethically-lily-296c@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 81d5a5366d3c20203fb9d7345e1aa46d668445a2 Mon Sep 17 00:00:00 2001 From: Fiona Klute Date: Sat, 13 Dec 2025 17:32:26 +0100 Subject: [PATCH] iio: chemical: scd4x: fix reported channel endianness The driver converts values read from the sensor from BE to CPU endianness in scd4x_read_meas(). The result is then pushed into the buffer in scd4x_trigger_handler(), so on LE architectures parsing the buffer using the reported BE type gave wrong results. scd4x_read_raw() which provides sysfs *_raw values is not affected, it used the values returned by scd4x_read_meas() without further conversion. Fixes: 49d22b695cbb6 ("drivers: iio: chemical: Add support for Sensirion SCD4x CO2 sensor") Signed-off-by: Fiona Klute Reviewed-by: David Lechner Cc: Signed-off-by: Jonathan Cameron diff --git a/drivers/iio/chemical/scd4x.c b/drivers/iio/chemical/scd4x.c index 8859f89fb2a9..0fd839176e26 100644 --- a/drivers/iio/chemical/scd4x.c +++ b/drivers/iio/chemical/scd4x.c @@ -584,7 +584,7 @@ static const struct iio_chan_spec scd4x_channels[] = { .sign = 'u', .realbits = 16, .storagebits = 16, - .endianness = IIO_BE, + .endianness = IIO_CPU, }, }, { @@ -599,7 +599,7 @@ static const struct iio_chan_spec scd4x_channels[] = { .sign = 'u', .realbits = 16, .storagebits = 16, - .endianness = IIO_BE, + .endianness = IIO_CPU, }, }, { @@ -612,7 +612,7 @@ static const struct iio_chan_spec scd4x_channels[] = { .sign = 'u', .realbits = 16, .storagebits = 16, - .endianness = IIO_BE, + .endianness = IIO_CPU, }, }, };