Re: [PATCH v2 1/3] iio: adc: hx711: fix bug in sampling of data

2019-09-15 Thread Jonathan Cameron
On Sun, 15 Sep 2019 13:53:26 +0100 Jonathan Cameron wrote: > On Mon, 9 Sep 2019 14:37:21 +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

Re: [PATCH v2 1/3] iio: adc: hx711: fix bug in sampling of data

2019-09-15 Thread Jonathan Cameron
On Mon, 9 Sep 2019 14:37:21 +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. > > Switch off

[PATCH v2 1/3] iio: adc: hx711: fix bug in sampling of data

2019-09-09 Thread Andreas Klinger
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. Switch off interrupts during a PD_SCK high period and move query of DOUT to the latest