Re: [PATCH] iio: adc: at91_adc: correct default shtim value

2014-03-15 Thread Alexandre Belloni
Hi, On 15/03/2014 at 16:34:02 +, Jonathan Cameron wrote : > Applied to the fixes-togreg branch of iio.git. > Note that is likely that this will go upstream after the merge window now. > I was aiming at 3.15 anyway. Thanks for you help ! -- Alexandre Belloni, Free Electrons Embedded Linux,

Re: [PATCH] iio: adc: at91_adc: correct default shtim value

2014-03-15 Thread Jonathan Cameron
On 05/03/14 11:04, Josh Wu wrote: Hi, Alexandre On 3/4/2014 2:07 AM, Alexandre Belloni wrote: When sample_hold_time is zero (this is the case when DT is not used or if atmel,adc-sample-hold-time is omitted), then the calculated shtim is large. Make that 0, which is the default for that registe

Re: [PATCH] iio: adc: at91_adc: correct default shtim value

2014-03-05 Thread Josh Wu
Hi, Alexandre On 3/4/2014 2:07 AM, Alexandre Belloni wrote: When sample_hold_time is zero (this is the case when DT is not used or if atmel,adc-sample-hold-time is omitted), then the calculated shtim is large. Make that 0, which is the default for that register and the ADC will then use a sane

[PATCH] iio: adc: at91_adc: correct default shtim value

2014-03-03 Thread Alexandre Belloni
When sample_hold_time is zero (this is the case when DT is not used or if atmel,adc-sample-hold-time is omitted), then the calculated shtim is large. Make that 0, which is the default for that register and the ADC will then use a sane value of 2/ADCCLK or 1/ADCCLK depending on the version. Signed