Re: [PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-23 Thread Jonathan Cameron
On 22 March 2017 19:22:20 GMT+00:00, Jonathan Cameron wrote: >On 22/03/17 16:20, simran singhal wrote: >> The IIO subsystem is redefining iio_dev->mlock to be used by >> the IIO core only for protecting device operating mode changes. >> ie. Changes between INDIO_DIRECT_MODE,

Re: [PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-23 Thread Jonathan Cameron
On 22 March 2017 19:22:20 GMT+00:00, Jonathan Cameron wrote: >On 22/03/17 16:20, simran singhal wrote: >> The IIO subsystem is redefining iio_dev->mlock to be used by >> the IIO core only for protecting device operating mode changes. >> ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_*

Re: [PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-22 Thread Jonathan Cameron
On 22/03/17 16:20, simran singhal wrote: > The IIO subsystem is redefining iio_dev->mlock to be used by > the IIO core only for protecting device operating mode changes. > ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes. > > In this driver, mlock was being used to protect hardware

Re: [PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-22 Thread Jonathan Cameron
On 22/03/17 16:20, simran singhal wrote: > The IIO subsystem is redefining iio_dev->mlock to be used by > the IIO core only for protecting device operating mode changes. > ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes. > > In this driver, mlock was being used to protect hardware

[PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-22 Thread simran singhal
The IIO subsystem is redefining iio_dev->mlock to be used by the IIO core only for protecting device operating mode changes. ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes. In this driver, mlock was being used to protect hardware state changes. In the driver, buf_lock protects both

[PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-22 Thread simran singhal
The IIO subsystem is redefining iio_dev->mlock to be used by the IIO core only for protecting device operating mode changes. ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes. In this driver, mlock was being used to protect hardware state changes. In the driver, buf_lock protects both