Files
linux/drivers/spi
Mark A. Greer abcc94f839 spi: omap2-mcspi: Configure hardware when slave driver changes mode
commit 97ca0d6cc1 upstream.

Commit id 2bd16e3e23
(spi: omap2-mcspi: Do not configure the controller
on each transfer unless needed) does its job too
well so omap2_mcspi_setup_transfer() isn't called
even when an SPI slave driver changes 'spi->mode'.
The result is that the mode requested by the SPI
slave driver never takes effect.

Fix this by adding the 'mode' member to the
omap2_mcspi_cs structure which holds the mode
value that the hardware is configured for.
When the SPI slave driver changes 'spi->mode'
it will be different than the value of this new
member and the SPI master driver will know that
the hardware must be reconfigured (by calling
omap2_mcspi_setup_transfer()).

Fixes: 2bd16e3e23 (spi: omap2-mcspi: Do not configure the controller on each transfer unless needed)
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-17 09:03:57 -07:00
..
2013-04-07 10:08:00 +01:00
2011-06-06 01:16:30 -06:00
2011-09-21 09:41:48 -06:00
2013-02-05 13:17:12 +00:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2013-06-04 18:51:40 +01:00
2013-04-23 19:27:00 +01:00
2013-04-07 10:08:00 +01:00
2013-04-01 14:32:32 +01:00