spi: img-spfi: Setup TRANSACTION register before CONTROL register
authorSifan Naeem <sifan.naeem@imgtec.com>
Mon, 6 Apr 2015 21:29:06 +0000 (14:29 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 8 Apr 2015 10:35:54 +0000 (11:35 +0100)
commitede8342bf63166e8d8fc3c05fc0985b27cc8186b
tree372bd0c2545b114affa74d01fb99506312bb8342
parentb6fe39770aa63d14129bc7e061c95cfc3cb1419a
spi: img-spfi: Setup TRANSACTION register before CONTROL register

Setting the transfer length in the TRANSACTION register after the
CONTROL register is programmed causes intermittent timeout issues in
SPFI transfers when using the SPI framework to control the CS GPIO
lines.  To avoid this issue, set transfer length before programming
the CONTROL register.

Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-img-spfi.c