MLK-15031-06 tty: serial: fsl_lpuart: re-calcaulate the minimum DMA transfer length
authorFugang Duan <fugang.duan@nxp.com>
Tue, 6 Jun 2017 08:08:41 +0000 (16:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:13 +0000 (15:28 -0500)
commite71c6c4a1890b50ff972893f0e24493acacc9113
treeef115afbdaad53ae16c0440f5e5c8a8e603f26e7
parent38666fa7d4cb987df1dced8baccd75eb30284996
MLK-15031-06 tty: serial: fsl_lpuart: re-calcaulate the minimum DMA transfer length

For lpuart32 loopback mode, DMA transfer length should be litter
than the tx/rx fifo free size to ensure there have no overrun.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
drivers/tty/serial/fsl_lpuart.c