[COMMON] spi: s3c64xx: divide tranfer length in DMA mode.
authormyung-su.cha <myung-su.cha@samsung.com>
Mon, 14 May 2018 04:12:50 +0000 (13:12 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Wed, 30 May 2018 04:34:58 +0000 (13:34 +0900)
commitd6cba3850b2975f59e59c47e1b4d97215a76bb19
tree56be43b9ea9c3595a1004de503c28215ea3433a3
parentb30f19acce3fdaada28fa0f41bd01023ea3764d5
[COMMON] spi: s3c64xx: divide tranfer length in DMA mode.

When transfer length is over the max value of COUNT_VALUE in PACKET_CNT_REG,
spi H/W only perceives the bits of COUNT_VALUE, so spiclk is
generated less than expected numbers.
Therefore, transfer length must be divided under the max value of
PACKET_CNT COUNT_VALUE.

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