MLK-12294 tty: serial: imx: init sport->flags before tx DMA ready
authorFugang Duan <b38611@freescale.com>
Wed, 20 Jan 2016 08:33:54 +0000 (16:33 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:39 +0000 (15:21 -0500)
Before then DMA tx path, init the DMA tx path synchronal flags
sport->flags.

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/tty/serial/imx.c

index 2378885..22bd5a4 100644 (file)
@@ -1187,6 +1187,7 @@ static void imx_enable_dma(struct imx_port *sport)
        unsigned long temp;
 
        init_waitqueue_head(&sport->dma_wait);
+       sport->flags = 0;
 
        /* set UCR1 */
        temp = readl(sport->port.membase + UCR1);