Re: [PATCH] iio: adis16480: fix FNCTIO_CTRL corruption when enabling IRQ

2016-03-09 Thread Vlad Banea
he driver does and which > has been tested. With your patch it uses DIO2 by default, which is the > correct setting for your board. > > - Lars > > On 03/09/2016 04:27 PM, Vlad Banea wrote: >> >> Hi, >> >> Since the driver is never setting the FNCTIO_CTRL

[PATCH] iio: adis16480: fix FNCTIO_CTRL corruption when enabling IRQ

2016-03-08 Thread Vlad Banea
Enabling the IRQ should leave all other settings in the FNCTIO_CTRL register untouched: read the whole register, toggle just the enable bit, before writing it back. --- drivers/iio/imu/adis16480.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/iio/imu/