Re: [PATCH v2 2/3] iio: adc: hx711: optimize performance in read cycle

2019-10-22 Thread Jonathan Cameron
On Sun, 15 Sep 2019 13:59:48 +0100 Jonathan Cameron wrote: > On Mon, 9 Sep 2019 14:37:48 +0200 > Andreas Klinger wrote: > > > Set gain in hx711_reset() to its default value after a reset cycle. This > > omits one precautionary read cycle, because the read is performed in > >

Re: [PATCH v2 2/3] iio: adc: hx711: optimize performance in read cycle

2019-09-15 Thread Jonathan Cameron
On Mon, 9 Sep 2019 14:37:48 +0200 Andreas Klinger wrote: > Set gain in hx711_reset() to its default value after a reset cycle. This > omits one precautionary read cycle, because the read is performed in > hx711_set_gain_for_channel() anyway if gain has changed. > > Check for DOUT low and if its

[PATCH v2 2/3] iio: adc: hx711: optimize performance in read cycle

2019-09-09 Thread Andreas Klinger
Set gain in hx711_reset() to its default value after a reset cycle. This omits one precautionary read cycle, because the read is performed in hx711_set_gain_for_channel() anyway if gain has changed. Check for DOUT low and if its high wait some time if it goes down instead of doing a blind reset