]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 4.19
authorSasha Levin <sashal@kernel.org>
Thu, 9 Feb 2023 18:18:44 +0000 (13:18 -0500)
committerSasha Levin <sashal@kernel.org>
Thu, 9 Feb 2023 18:18:44 +0000 (13:18 -0500)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.19/iio-adc-twl6030-enable-measurement-of-vac.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/iio-adc-twl6030-enable-measurement-of-vac.patch b/queue-4.19/iio-adc-twl6030-enable-measurement-of-vac.patch
new file mode 100644 (file)
index 0000000..a5965be
--- /dev/null
@@ -0,0 +1,39 @@
+From 9430f06fb2de20597bf0163754b52bf3c0ae94dd Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Sat, 17 Dec 2022 23:13:05 +0100
+Subject: iio:adc:twl6030: Enable measurement of VAC
+
+From: Andreas Kemnade <andreas@kemnade.info>
+
+[ Upstream commit bffb7d9d1a3dbd09e083b88aefd093b3b10abbfb ]
+
+VAC needs to be wired up to produce proper measurements,
+without this change only near zero values are reported.
+
+Reported-by: kernel test robot <lkp@intel.com>
+Reported-by: Julia Lawall <julia.lawall@lip6.fr>
+Fixes: 1696f36482e7 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver")
+Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
+Link: https://lore.kernel.org/r/20221217221305.671117-1-andreas@kemnade.info
+Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ drivers/iio/adc/twl6030-gpadc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c
+index b9c4722063eb0..3007cfbf84918 100644
+--- a/drivers/iio/adc/twl6030-gpadc.c
++++ b/drivers/iio/adc/twl6030-gpadc.c
+@@ -968,7 +968,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
+       }
+       ret = twl_i2c_write_u8(TWL6030_MODULE_ID0,
+-                              VBAT_MEAS | BB_MEAS | BB_MEAS,
++                              VBAT_MEAS | BB_MEAS | VAC_MEAS,
+                               TWL6030_MISC1);
+       if (ret < 0) {
+               dev_err(dev, "failed to wire up inputs\n");
+-- 
+2.39.0
+
index 9a2a67ea2ee971d706226a932f441cae657e6b14..861f394f486ab8b0b2536bf168da96781304a8cd 100644 (file)
@@ -39,3 +39,4 @@ squashfs-fix-handling-and-sanity-checking-of-xattr_ids-count.patch
 serial-8250_dma-fix-dma-rx-completion-race.patch
 serial-8250_dma-fix-dma-rx-rearm-race.patch
 thermal-intel-int340x-add-locking-to-int340x_thermal_get_trip_type.patch
+iio-adc-twl6030-enable-measurement-of-vac.patch