Paul Cercueil
6d6aa2907d
iio/adc: ingenic: Fix AUX/VBAT readings when touchscreen is used
...
When the command feature of the ADC is used, it is possible to program
the ADC, and specify at each step what input should be processed, and in
comparison to what reference.
This broke the AUX and battery readings when the touchscreen was
enabled, most likely because the CMD feature would change the VREF all
the time.
Now, when AUX or battery are read, we temporarily disable the CMD
feature, which means that we won't get touchscreen readings in that time
frame. But it now gives correct values for AUX / battery, and the
touchscreen isn't disabled for long enough to be an actual issue.
Fixes: b96952f498db ("IIO: Ingenic JZ47xx: Add touchscreen mode.")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Artur Rojek <contact@artur-rojek.eu>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201103201238.161083-1-paul@crapouillou.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-11-08 15:36:48 +00:00
..
2020-08-23 17:36:59 -05:00
2020-07-20 09:03:20 +01:00
2019-11-16 17:06:10 +00:00
2020-06-14 11:49:59 +01:00
2019-11-16 17:06:10 +00:00
2020-09-20 18:26:44 +01:00
2020-07-20 09:03:37 +01:00
2020-06-20 17:34:44 +01:00
2020-09-29 17:27:05 +01:00
2020-09-29 17:34:25 +01:00
2020-07-20 09:02:49 +01:00
2020-06-14 14:20:08 +01:00
2019-08-05 15:59:14 +01:00
2019-08-25 16:11:00 +01:00
2020-06-20 17:34:44 +01:00
2019-08-25 16:11:00 +01:00
2020-06-20 17:34:44 +01:00
2020-06-20 17:34:44 +01:00
2020-07-20 09:37:31 +02:00
2020-06-14 14:20:08 +01:00
2020-06-14 14:20:08 +01:00
2020-07-20 09:02:57 +01:00
2020-07-20 09:02:49 +01:00
2020-09-21 18:41:36 +01:00
2020-09-29 17:27:07 +01:00
2020-07-20 09:02:46 +01:00
2020-09-03 19:40:47 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:22 +01:00
2020-09-29 17:50:35 +01:00
2020-09-03 19:40:46 +01:00
2020-06-14 11:49:59 +01:00
2020-09-03 19:40:45 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-08-23 17:36:59 -05:00
2020-06-14 14:20:08 +01:00
2020-06-20 17:34:44 +01:00
2020-09-03 19:40:49 +01:00
2020-06-14 11:49:59 +01:00
2020-09-21 20:01:50 +01:00
2020-09-21 18:41:35 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:50:04 +01:00
2020-06-14 11:49:59 +01:00
2020-08-31 10:47:52 +01:00
2020-11-08 15:36:48 +00:00
2020-06-14 11:49:59 +01:00
2020-09-22 09:45:11 +02:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:08 +01:00
2020-09-03 19:40:49 +01:00
2020-07-07 20:24:09 +01:00
2019-12-15 12:15:19 +00:00
2020-06-07 10:45:08 -07:00
2020-07-07 20:24:08 +01:00
2020-08-31 10:47:52 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:27 +01:00
2020-07-20 09:03:27 +01:00
2020-07-07 20:24:09 +01:00
2020-07-13 15:05:59 +01:00
2020-09-01 16:08:07 +02:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-09-22 09:45:11 +02:00
2020-05-26 10:41:47 +01:00
2020-11-01 15:22:46 +00:00
2020-06-20 17:34:44 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:59 +01:00
2020-09-16 19:09:51 +01:00
2020-07-20 09:03:31 +01:00
2020-09-22 13:33:19 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 14:20:08 +01:00
2020-06-14 11:49:21 +01:00
2020-06-14 11:49:21 +01:00
2020-09-29 17:50:51 +01:00
2020-06-14 11:49:59 +01:00
2020-07-20 09:03:35 +01:00
2020-06-14 11:49:59 +01:00
2020-07-07 20:24:09 +01:00
2020-06-14 11:49:59 +01:00
2020-11-01 17:14:06 +00:00
2019-12-15 11:42:17 +00:00
2020-11-01 17:14:06 +00:00
2020-10-15 11:07:44 -07:00
2020-09-29 17:27:06 +01:00
2020-10-08 20:44:41 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 11:49:59 +01:00
2020-06-14 14:20:08 +01:00
2020-07-20 09:03:11 +01:00
2020-09-14 06:57:52 +02:00
2020-08-31 10:47:52 +01:00
2020-09-03 19:40:45 +01:00
2020-09-03 19:40:45 +01:00
2020-07-07 20:24:10 +01:00
2020-09-21 20:01:51 +01:00
2020-09-21 20:01:51 +01:00
2020-07-13 15:05:59 +01:00
2020-08-22 11:38:44 +01:00
2020-07-13 15:05:59 +01:00
2020-07-13 15:05:59 +01:00
2020-06-14 14:20:08 +01:00
2020-07-13 15:05:59 +01:00
2020-07-20 09:03:14 +01:00
2020-07-20 09:03:15 +01:00
2020-06-20 17:34:44 +01:00
2020-06-14 11:49:59 +01:00
2020-09-08 13:32:07 +02:00
2020-03-21 10:25:35 +00:00
2020-03-21 10:25:35 +00:00