Re: [PATCH] iio:ad7793: Fix the serial interface reset

2017-09-04 Thread Bogdan, Dragos
On 09/04/2017 06:27 PM, Jonathan Cameron wrote: > On Mon, 4 Sep 2017 18:00:48 +0300 > Dragos Bogdan wrote: > >> The serial interface can be reset by writing 32 consecutive 1s to the device. >> The value of 'ret' is overwritten when ad7793_check_platform_data() is >> called, >> so it should be ini

Re: [PATCH] iio:ad7793: Fix the serial interface reset

2017-09-04 Thread Jonathan Cameron
On Mon, 4 Sep 2017 18:00:48 +0300 Dragos Bogdan wrote: > The serial interface can be reset by writing 32 consecutive 1s to the device. > The value of 'ret' is overwritten when ad7793_check_platform_data() is called, > so it should be initialized to -1 only before doing the spi_write(). > > Fixes

[PATCH] iio:ad7793: Fix the serial interface reset

2017-09-04 Thread Dragos Bogdan
The serial interface can be reset by writing 32 consecutive 1s to the device. The value of 'ret' is overwritten when ad7793_check_platform_data() is called, so it should be initialized to -1 only before doing the spi_write(). Fixes: commit 2edb769d246e ("iio:ad7793: Add support for the ad7798 and