]> git.baikalelectronics.ru Git - kernel.git/commit
serial: tegra: Correct delay after TX flush
authorJon Hunter <jonathanh@nvidia.com>
Tue, 5 May 2015 14:17:52 +0000 (15:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 17:12:18 +0000 (19:12 +0200)
commit3ab5e6339b07fed48d90768742da9202eda0c492
tree30fb45f2883375fc903d9f0500e5fff0c2c8d292
parentd71c756d1feae9db2be9e83c0ce7f81fa2efab4f
serial: tegra: Correct delay after TX flush

For all tegra devices (up to t210), there is a hardware issue that
requires software to wait for 32 UART clock periods for the flush
to propagate otherwise TX data could be post. Add a helper function
to wait for N UART clock periods and update delay following FIFO
flush to be 32 UART clock cycles.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c