patch "iio: adc: cc10001: Add delay before setting START bit" added to staging-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iio: adc: cc10001: Add delay before setting START bit
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.
Quoted 1 line
From
f29b212edb9e253cafcb4a2ab7842a890989f1a5Mon Sep 17 00:00:00 2001
From: Naidu Tellapati <[email protected]>
Date: Thu, 7 May 2015 18:22:20 -0300
Subject: iio: adc: cc10001: Add delay before setting START bit
According to hardware team there should be some delay after setting channel number, start mode and before setting START. Add a one microsecond delay for this purpose.
--- drivers/iio/adc/cc10001_adc.c | 1 + 1 file changed, 1 insertion(+)
drivers/iio/adc/cc10001_adc.c +1 -0
@@ -100,6 +100,7 @@ static void cc10001_adc_start(struct cc10001_adc_device *adc_dev, val = (channel &CC10001_ADC_CH_MASK ) |CC10001_ADC_MODE_SINGLE_CONV ;cc10001_adc_write_reg (adc_dev,CC10001_ADC_CONFIG , val); +udelay (1 ); val =cc10001_adc_read_reg (adc_dev,CC10001_ADC_CONFIG ); val = val |CC10001_ADC_START_CONV ;cc10001_adc_write_reg (adc_dev,CC10001_ADC_CONFIG , val);
Signature · 1 line
2.4.0