Patch "iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits" has been added to the 3.18-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iio-adc-vf610_adc-fix-valt-selection-value-for-refsel-bits.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
d466d3c1217406b14b834335b5b4b33c0d45bd09Mon Sep 17 00:00:00 2001
From: Stefan-Gabriel Mirea <[email protected]>
Date: Thu, 6 Jul 2017 10:06:41 +0100
Subject: iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits
From: Stefan-Gabriel Mirea <[email protected]>
commit d466d3c1217406b14b834335b5b4b33c0d45bd09 upstream.
In order to select the alternate voltage reference pair (VALTH/VALTL), the right value for the REFSEL field in the ADCx_CFG register is "01", leading to 0x800 as register mask. See section 8.2.6.4 in the reference manual[1].
[1] http://www.nxp.com/docs/en/reference-manual/VFXXXRM.pdf
--- drivers/iio/adc/vf610_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/vf610_adc.c +1 -1
@@ -71,7 +71,7 @@#define VF610_ADC_ADSTS_MASK 0x300#define VF610_ADC_ADLPC_EN 0x80#define VF610_ADC_ADHSC_EN 0x400 -#define VF610_ADC_REFSEL_VALT 0x100 +#define VF610_ADC_REFSEL_VALT 0x800#define VF610_ADC_REFSEL_VBG 0x1000#define VF610_ADC_ADTRG_HARD 0x2000#define VF610_ADC_AVGS_8 0x4000
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/iio-adc-vf610_adc-fix-valt-selection-value-for-refsel-bits.patch