Re: [PATCH 01/10] iio: imu: adis: rename txrx_lock -> state_lock

2019-10-07 Thread Ardelean, Alexandru
On Sun, 2019-10-06 at 10:06 +0100, Jonathan Cameron wrote: > [External] > > On Sun, 6 Oct 2019 09:53:33 +0100 > Jonathan Cameron wrote: > > > On Thu, 26 Sep 2019 14:18:03 +0300 > > Alexandru Ardelean wrote: > > > > > The lock can be extended a bit to protect other elements that are not > > > p

Re: [PATCH 01/10] iio: imu: adis: rename txrx_lock -> state_lock

2019-10-06 Thread Jonathan Cameron
On Sun, 6 Oct 2019 09:53:33 +0100 Jonathan Cameron wrote: > On Thu, 26 Sep 2019 14:18:03 +0300 > Alexandru Ardelean wrote: > > > The lock can be extended a bit to protect other elements that are not > > particular to just TX/RX. Another idea would have been to just add a new > > `state_lock`, b

Re: [PATCH 01/10] iio: imu: adis: rename txrx_lock -> state_lock

2019-10-06 Thread Jonathan Cameron
On Thu, 26 Sep 2019 14:18:03 +0300 Alexandru Ardelean wrote: > The lock can be extended a bit to protect other elements that are not > particular to just TX/RX. Another idea would have been to just add a new > `state_lock`, but that would mean 2 locks which would be redundant, and > probably caus

[PATCH 01/10] iio: imu: adis: rename txrx_lock -> state_lock

2019-09-26 Thread Alexandru Ardelean
The lock can be extended a bit to protect other elements that are not particular to just TX/RX. Another idea would have been to just add a new `state_lock`, but that would mean 2 locks which would be redundant, and probably cause more potential for dead-locks. What will be done in the next patches