Re: [PATCH 2/5] iio: stmpe-adc: Reinit completion struct on begin conversion

2019-05-13 Thread Philippe Schenker
On Sat, 2019-05-11 at 11:08 +0100, Jonathan Cameron wrote: > On Tue, 7 May 2019 16:36:12 +0200 > Philippe Schenker wrote: > > > From: Philippe Schenker > > > > In some cases, the wait_completion got interrupted. This caused the > > error-handling to mutex_unlock the function. The before

Re: [PATCH 2/5] iio: stmpe-adc: Reinit completion struct on begin conversion

2019-05-11 Thread Jonathan Cameron
On Tue, 7 May 2019 16:36:12 +0200 Philippe Schenker wrote: > From: Philippe Schenker > > In some cases, the wait_completion got interrupted. This caused the > error-handling to mutex_unlock the function. The before turned on > interrupt then got called anyway. In the ISR then completion() was

[PATCH 2/5] iio: stmpe-adc: Reinit completion struct on begin conversion

2019-05-07 Thread Philippe Schenker
From: Philippe Schenker In some cases, the wait_completion got interrupted. This caused the error-handling to mutex_unlock the function. The before turned on interrupt then got called anyway. In the ISR then completion() was called causing wrong adc-values returned in a following adc-readout.