summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/ltc2485.c
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@st.com>2018-03-13 17:23:05 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-03-18 01:32:31 +0300
commit7531cf59bfa082769887ec70c2029838ea139f11 (patch)
treea2fca46b73389c59e35c90e582e2bdf9692c5062 /drivers/iio/adc/ltc2485.c
parent490fba90a90eb7b741f57fefd2bcf2c1e11eb471 (diff)
downloadlinux-7531cf59bfa082769887ec70c2029838ea139f11.tar.xz
iio: adc: stm32-dfsdm: fix successive oversampling settings
When doing successive oversampling settings, it may fail to update filter parameters silently: - First time oversampling is being set, it will be successful, as fl->res is 0 initially. - Next attempts with various oversamp value may return 0 (success), but keep previous filter parameters, due to 'res' never reaches above or equal current 'fl->res'. This is particularly true when setting sampling frequency (that relies on oversamp). Typical failure without error: - run 1st test @16kHz samp freq will succeed - run new test @8kHz will succeed as well - run new test @16kHz (again): sample rate will remain 8kHz without error Fixes: e2e6771c6462 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support") Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/ltc2485.c')
0 files changed, 0 insertions, 0 deletions