diff options
author | Stefan Roese <sr@denx.de> | 2014-01-31 13:44:59 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-04 11:33:39 +0000 |
commit | 4302a59629f7a0bd70fd1605d2b558597517372a (patch) | |
tree | 8472dcbd78ea55f7ff49796c1682c9542da94368 /drivers/spi/spi-mpc512x-psc.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | op-kernel-dev-4302a59629f7a0bd70fd1605d2b558597517372a.zip op-kernel-dev-4302a59629f7a0bd70fd1605d2b558597517372a.tar.gz |
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>
Diffstat (limited to 'drivers/spi/spi-mpc512x-psc.c')
0 files changed, 0 insertions, 0 deletions