Re: [PATCH v3] iio: adc: exynos: do not rely on 'users' counter in ISR

2020-10-10 Thread Jonathan Cameron
On Tue, 6 Oct 2020 14:55:09 -0700 dmitry.torok...@gmail.com wrote: > The order in which 'users' counter is decremented vs calling drivers' > close() method is implementation specific, and we should not rely on > it. Let's introduce driver private flag and use it to signal ISR > to exit when

[PATCH v3] iio: adc: exynos: do not rely on 'users' counter in ISR

2020-10-06 Thread dmitry . torokhov
The order in which 'users' counter is decremented vs calling drivers' close() method is implementation specific, and we should not rely on it. Let's introduce driver private flag and use it to signal ISR to exit when device is being closed. This has a side-effect of fixing issue of accessing