Re: [PATCH] spi: spidev: Fix for reverting spi max speed value only on failure

2019-06-03 Thread Mark Brown
On Sun, Jun 02, 2019 at 07:49:59PM +0530, Vivek Pernamitta wrote: > When user space application request for change in spi clock > using ioctl, current value is taken back-up and new value is > assigned to spi->max_speed_hz, then spi_setup() function is > called with new value. If spi_setup() functi

[PATCH] spi: spidev: Fix for reverting spi max speed value only on failure

2019-06-02 Thread Vivek Pernamitta
When user space application request for change in spi clock using ioctl, current value is taken back-up and new value is assigned to spi->max_speed_hz, then spi_setup() function is called with new value. If spi_setup() function fails, it needs reverting to old spi_max_speed value only in failure co