[COMMON] spi: s3c64xx: check xfer length in DMA spi_map and unmap
authormyung-su.cha <myung-su.cha@samsung.com>
Thu, 5 Jul 2018 04:55:54 +0000 (13:55 +0900)
committerJungi Lee <jungilsi.lee@samsung.com>
Tue, 17 Jul 2018 11:34:49 +0000 (20:34 +0900)
commite96495028f040c961285387ae5a171d820fb669b
treeee5a32ec1538a5fdc1ae402b85f57a2c12d90a21
parent9d13ce23589e06a24df2928ac9a5a9d8061c0ef2
[COMMON] spi: s3c64xx: check xfer length in DMA spi_map and unmap

When transfer length is smaller than fifo-size in DMA mode,
it is transferred by CPU mode not DMA. This patch makes spi_map
function not executed in this case.

Change-Id: Iec9f52f83b1a8abefed67af3276f2194df90e9e4
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
drivers/spi/spi-s3c64xx.c