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

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

diff --git a/queue-5.15/iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch b/queue-5.15/iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch
new file mode 100644 (file)
index 0000000..f77dbde
--- /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
+@@ -497,6 +497,7 @@ static int fxls8962af_set_watermark(stru
+                             BIT(IIO_CHAN_INFO_OFFSET),\
+       .scan_index = -1, \
+       .scan_type = { \
++              .sign = 's', \
+               .realbits = 8, \
+               .storagebits = 8, \
+       }, \
index f2ed5c7e64108a5582c39f0229a3bcc0e4c4fef7..d0ed581f9f4db6600cce6c9c15a19e82a033c286 100644 (file)
@@ -255,3 +255,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