serial: imx: setup fifo waterlevel before enabling aging timer
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 2 Mar 2018 10:07:24 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 18:21:01 +0000 (10:21 -0800)
commit02b0abd3bb93ea1d9818c5c5b1fcf293f81cee37
treeeacf384beb892eb259b68a506db59587483eb378
parent4444dcf1fe7ea5af4e335658742d7c6868d91941
serial: imx: setup fifo waterlevel before enabling aging timer

The aging timer fires if there are characters in the RX fifo but the
water level isn't reached yet. Make sure that the waterlevel is
configured before the aging timer is enabled to trigger a DMA request
(UCR1_ATDMAEN).

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c