diff options
author | Uwe Kleine-König <[email protected]> | 2021-07-09 12:11:10 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2021-07-17 18:36:53 +0100 |
commit | 9898cb24e454602beb6e17bacf9f97b26c85c955 (patch) | |
tree | 4c1353c6ffbd24bc325c25229f1e8f914cd75d33 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4377d9ab1f162e58e0e5ae89c9a5fd7b4d8a6bdb (diff) |
iio: adc: ti-ads7950: Ensure CS is deasserted after reading channels
The ADS7950 requires that CS is deasserted after each SPI word. Before
commit e2540da86ef8 ("iio: adc: ti-ads7950: use SPI_CS_WORD to reduce
CPU usage") the driver used a message with one spi transfer per channel
where each but the last one had .cs_change set to enforce a CS toggle.
This was wrongly translated into a message with a single transfer and
.cs_change set which results in a CS toggle after each word but the
last which corrupts the first adc conversion of all readouts after the
first readout.
Fixes: e2540da86ef8 ("iio: adc: ti-ads7950: use SPI_CS_WORD to reduce CPU usage")
Signed-off-by: Uwe Kleine-König <[email protected]>
Reviewed-by: David Lechner <[email protected]>
Tested-by: David Lechner <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions