summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2020-09-23 14:17:48 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-09-29 18:50:35 +0200
commit1a198794451449113fa86994ed491d6986802c23 (patch)
treef8b8a9753897319fc54b70f44e32a60a71d5023d /drivers/iio/gyro
parentiio: ad7292: Fix of_node refcounting (diff)
downloadlinux-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