commit | 90abef91c5974d3d4845d64fd75a319fb20f6e6b | [log] [tgz] |
---|---|---|
author | Stefan Agner <stefan@agner.ch> | Wed Jul 02 18:02:56 2014 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Jul 10 16:03:59 2014 -0700 |
tree | 7855103964528f6e0b7e600381d2c7458998e953 | |
parent | ae84db9661cafc63d179e1d985a2c5b841ff0ac4 [diff] |
serial: fsl_lpuart: move DMA RX timeout calculation The DMA RX timeout calculation is done based on FIFO buffer size and port timeout when setting up DMA. However, both variables are not necessarily initialized at DMA initialization time, which can lead to a division by zero. Move the timeout calculation to set_termios where both variables are initialized. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>