patch "iio: xilinx-xadc: Fix ADC-B powerdown" added to staging-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
iio: xilinx-xadc: Fix ADC-B powerdown
to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From e44ec7794d88f918805d700240211a9ec05ed89d Mon Sep 17 00:00:00 2001
From: Lars-Peter Clausen <[email protected]>
Date: Fri, 3 Apr 2020 15:27:13 +0200
Subject: iio: xilinx-xadc: Fix ADC-B powerdown
The check for shutting down the second ADC is inverted. This causes it to be powered down when it should be enabled. As a result channels that are supposed to be handled by the second ADC return invalid conversion results.
--- drivers/iio/adc/xilinx-xadc-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/iio/adc/xilinx-xadc-core.c +3 -2
@@ -722,13 +722,14 @@ static int xadc_power_adc_b(struct xadc *xadc, unsigned int seq_mode) {uint16_t val; +/* Powerdown the ADC-B when it is not needed. */ switch (seq_mode) {case XADC_CONF1_SEQ_SIMULTANEOUS :case XADC_CONF1_SEQ_INDEPENDENT : - val =XADC_CONF2_PD_ADC_B ; + val =0 ;break ;default : - val =0 ; + val =XADC_CONF2_PD_ADC_B ;break ; }
Signature · 1 line
2.26.1