spi: sh-msiof: Fix DMA transfer size check
authorHiromitsu Yamasaki <[email protected]>
Thu, 2 Nov 2017 09:32:36 +0000 (10:32 +0100)
committerMark Brown <[email protected]>
Thu, 2 Nov 2017 11:25:44 +0000 (11:25 +0000)
commit36735783fdb599c94b9c86824583df367c65900b
treee496e1d75f1aadf8d01bff1d4ac36626060f1eab
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
spi: sh-msiof: Fix DMA transfer size check

DMA supports 32-bit words only,
even if BITLEN1 of SITMDR2 register is 16bit.

Fixes: b0d0ce8b6b91 ("spi: sh-msiof: Add DMA support")
Signed-off-by: Hiromitsu Yamasaki <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
Acked-by: Dirk Behme <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-sh-msiof.c