]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Pause DMA engine and get DMA status again
authorMuhammad Hamza Farooq <mfarooq@visteon.com>
Fri, 18 Sep 2015 11:08:32 +0000 (13:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:36:10 +0000 (17:36 +0100)
commitb0cbcdf9fc698e06f4595fc65c0c4c49c4efa306
treeeddd5d76fd117cbe60f27f25558b907547150a3c
parent0a71a0f707fec73a4cc9d280a1aa912d14bd4c92
serial: sh-sci: Pause DMA engine and get DMA status again

Occasionally, DMA transaction completes _after_ DMA engine is stopped.
Verify if the transaction has not finished before forcing the engine to
stop and push the data

Signed-off-by: Muhammad Hamza Farooq <mfarooq@visteon.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c