serial: samsung: fix maxburst parameter for DMA transactions
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 10 May 2018 06:41:13 +0000 (08:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Jun 2018 07:45:16 +0000 (09:45 +0200)
commit804f090110695cd3e8cfa74cfec93ca54191e990
treebd670965a6190e651089b3b6aac9e74c54cd5a98
parentdb30b8eb960a09fb8cd10c55e40cc09875d60eb1
serial: samsung: fix maxburst parameter for DMA transactions

commit aa2f80e752c75e593b3820f42c416ed9458fa73e upstream.

The best granularity of residue that DMA engine can report is in the BURST
units, so the serial driver must use MAXBURST = 1 and DMA_SLAVE_BUSWIDTH_1_BYTE
if it relies on exact number of bytes transferred by DMA engine.

Fixes: 62c37eedb74c ("serial: samsung: add dma reqest/release functions")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c