spi: spi-s3c64xx: Do not ignore timeout errors in polling I/O mode
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 12 Apr 2018 13:57:17 +0000 (15:57 +0200)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:56:58 +0000 (14:56 +0900)
commit07983a629ed899ea097826a07363a79a5233dd96
tree725fcf11e24f499bb24b0224e6347db60308843d
parenta3126fd17aaa47f526a403ed5880a4804567ab58
spi: spi-s3c64xx: Do not ignore timeout errors in polling I/O mode

Currently timeout errors in polling I/O mode transfer are silently ignored.
Fix it by returning an error when we time out waiting on the RX FIFO level
to reach the transfer length.

Change-Id: I39d663204880bb5a9c4d092c020912055078416c
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/spi/spi-s3c64xx.c