Re: [PATCH 3/3] iio: dac: ad5592r: localize locks only where needed in ad5592r_read_raw()

2020-09-17 Thread Jonathan Cameron
On Mon, 6 Jul 2020 14:02:59 +0300 Alexandru Ardelean wrote: > Since there was a recently discovered issue with these locks, it probably > makes sense to cleanup the code a bit, to prevent it from being used as an > example/reference. > > This change moves the lock only where it is explicitly

[PATCH 3/3] iio: dac: ad5592r: localize locks only where needed in ad5592r_read_raw()

2020-07-06 Thread Alexandru Ardelean
Since there was a recently discovered issue with these locks, it probably makes sense to cleanup the code a bit, to prevent it from being used as an example/reference. This change moves the lock only where it is explicitly needed to protect resources from potential concurrent accesses. It also