Re: [PATCH 1/3] iio: adc: hx711: optimize sampling of data

2019-09-09 Thread Andreas Klinger
Hi Jonathan, only patch 1 fixes a bug which is occurring on systems. In my test it happened every one of about 10 - 15.000 measurements. But this depends on the interrupt load of the system. With a high interrupt load there might be much more wrong measurements. Patch 2 is a performance optimizat

Re: [PATCH 1/3] iio: adc: hx711: optimize sampling of data

2019-09-08 Thread Jonathan Cameron
On Sat, 7 Sep 2019 12:18:00 +0200 Andreas Klinger wrote: > Fix bug in sampling function hx711_cycle() when interrupt occures while > PD_SCK is high. If PD_SCK is high for at least 60 us power down mode of > the sensor is entered which in turn leads to a wrong measurement. > > Move query of DOUT