]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: use hrtimers for rs485 delays
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Tue, 14 Jul 2020 09:30:12 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 19:08:11 +0000 (21:08 +0200)
commitae0f0b23ff7a5f58c252fc1edabdd74cfef84434
treea660ea314cc62b5c2ede82cab1bd153a9bb11cea
parent7eafb63214ae7a1ec65767e8b25ea4cf836b9087
serial: imx: use hrtimers for rs485 delays

This patch imitates 5c75639808 ("serial: 8250: Use hrtimers for
rs485 delays") in replacing the previously used classic timers
with hrtimers. The old way provided a too coarse resolution on
systems with configs of less than 1000 HZ.

Use of hrtimers addresses this and can be easily extended to
support microsecond resolution in future when support
for this arrives upstream.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.kernel.org/r/20200714093012.21621-3-uwe@kleine-koenig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c