diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2020-09-23 14:17:48 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-09-29 18:50:35 +0200 |
commit | 1a198794451449113fa86994ed491d6986802c23 (patch) | |
tree | f8b8a9753897319fc54b70f44e32a60a71d5023d /drivers/iio/gyro | |
parent | iio: ad7292: Fix of_node refcounting (diff) | |
download | linux-1a198794451449113fa86994ed491d6986802c23.tar.xz linux-1a198794451449113fa86994ed491d6986802c23.zip |
iio: adc: at91-sama5d2_adc: fix DMA conversion crash
After the move of the postenable code to preenable, the DMA start was
done before the DMA init, which is not correct.
The DMA is initialized in set_watermark. Because of this, we need to call
the DMA start functions in set_watermark, after the DMA init, instead of
preenable hook, when the DMA is not properly setup yet.
Fixes: f3c034f61775 ("iio: at91-sama5d2_adc: adjust iio_triggered_buffer_{predisable,postenable} positions")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Link: https://lore.kernel.org/r/20200923121748.49384-1-eugen.hristev@microchip.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/gyro')
0 files changed, 0 insertions, 0 deletions