From: Greg Kroah-Hartman Date: Fri, 20 Jun 2025 10:31:23 +0000 (+0200) Subject: 5.15-stable patches X-Git-Tag: v5.4.295~146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c06428afcb3ad3e40e1967bd66e8a8521e888ad;p=thirdparty%2Fkernel%2Fstable-queue.git 5.15-stable patches added patches: iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch --- 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 index 0000000000..f77dbde035 --- /dev/null +++ b/queue-5.15/iio-accel-fxls8962af-fix-temperature-scan-element-sign.patch @@ -0,0 +1,35 @@ +From 9c78317b42e7c32523c91099859bc4721e9f75dd Mon Sep 17 00:00:00 2001 +From: Sean Nyekjaer +Date: Mon, 5 May 2025 21:20:08 +0200 +Subject: iio: accel: fxls8962af: Fix temperature scan element sign + +From: Sean Nyekjaer + +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 +Cc: stable@vger.kernel.org +Reviewed-by: Marcelo Schmitt +Signed-off-by: Sean Nyekjaer +Link: https://patch.msgid.link/20250505-fxls-v4-2-a38652e21738@geanix.com +Signed-off-by: Jonathan Cameron +Signed-off-by: Greg Kroah-Hartman +--- + 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, \ + }, \ diff --git a/queue-5.15/series b/queue-5.15/series index f2ed5c7e64..d0ed581f9f 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -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