spi: sh-msiof: Improve transfer error handling
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 20 Jun 2014 10:16:18 +0000 (12:16 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 10:17:36 +0000 (11:17 +0100)
commit75b82e23a4ea20a9e1a48695ff5e01761889dbb3
tree0b9e314ebbb6aa46abd62e7cb5a81d278348a9ce
parent76c02e71612533206cb062b875c9609bce83d23a
spi: sh-msiof: Improve transfer error handling

  - Add a timeout when waiting for the transfer complete interrupt,
  - If sh_msiof_spi_stop() fails, there's no need to clear IER, as the
    interrupt handler has already done that,
  - Propagate transfer failures in sh_msiof_transfer_one().

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sh-msiof.c