]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.6-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2025 10:31:46 +0000 (12:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2025 10:31:46 +0000 (12:31 +0200)
added patches:
iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch

queue-6.6/iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch [new file with mode: 0644]
queue-6.6/series

diff --git a/queue-6.6/iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch b/queue-6.6/iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch
new file mode 100644 (file)
index 0000000..174983a
--- /dev/null
@@ -0,0 +1,35 @@
+From 9c78317b42e7c32523c91099859bc4721e9f75dd Mon Sep 17 00:00:00 2001
+From: Sean Nyekjaer <sean@geanix.com>
+Date: Mon, 5 May 2025 21:20:08 +0200
+Subject: iio: accel: fxls8962af: Fix temperature scan element sign
+
+From: Sean Nyekjaer <sean@geanix.com>
+
+commit 9c78317b42e7c32523c91099859bc4721e9f75dd upstream.
+
+Mark the temperature element signed, data read from the TEMP_OUT register
+is in two's complement format.
+This will avoid the temperature being mishandled and miss displayed.
+
+Fixes: a3e0b51884ee ("iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers")
+Suggested-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
+Cc: stable@vger.kernel.org
+Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
+Signed-off-by: Sean Nyekjaer <sean@geanix.com>
+Link: https://patch.msgid.link/20250505-fxls-v4-2-a38652e21738@geanix.com
+Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/iio/accel/fxls8962af-core.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/iio/accel/fxls8962af-core.c
++++ b/drivers/iio/accel/fxls8962af-core.c
+@@ -737,6 +737,7 @@ static const struct iio_event_spec fxls8
+                             BIT(IIO_CHAN_INFO_OFFSET),\
+       .scan_index = -1, \
+       .scan_type = { \
++              .sign = 's', \
+               .realbits = 8, \
+               .storagebits = 8, \
+       }, \
index 88f47f99eddf0b5dff020140bcc9eecf1e87d404..47097a92d9cfb23046a8c940910829771dc48e4a 100644 (file)
@@ -109,3 +109,4 @@ pci-cadence-ep-correct-pba-offset-in-.set_msix-callback.patch
 pci-add-acs-quirk-for-loongson-pcie.patch
 pci-fix-lock-symmetry-in-pci_slot_unlock.patch
 pci-dw-rockchip-fix-phy-function-call-sequence-in-rockchip_pcie_phy_deinit.patch
+iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch