Stefan Roese 4302a59629 spi: fsl: Fix problem with multi message transfers
When used via spidev with more than one messages to tranfer via
SPI_IOC_MESSAGE the current implementation would return with
-EINVAL, since bits_per_word and speed_hz are set in all
transfer structs. And in the 2nd loop status will stay at
-EINVAL as its not overwritten again via fsl_spi_setup_transfer().

This patch changes this behavious by first checking if one of
the messages uses different settings. If this is the case
the function will return with -EINVAL. If not, the messages
are transferred correctly.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
2014-02-04 11:33:39 +00:00
..
2014-01-25 13:20:36 -08:00
2013-12-17 22:53:36 +00:00
2013-11-14 11:04:38 -08:00
2013-12-31 12:30:18 +00:00
2013-08-29 13:56:23 +01:00
2013-12-09 17:31:38 +00:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2014-01-13 11:30:41 +00:00
2014-01-25 13:20:36 -08:00
2014-01-25 13:20:36 -08:00
2014-01-25 13:20:36 -08:00
2013-08-29 13:56:23 +01:00
2014-01-25 13:20:36 -08:00
2013-10-15 13:15:52 +01:00