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)
commit245c0278ab2a2e3d0360296710b4c285291469b5
tree30fb45f2883375fc903d9f0500e5fff0c2c8d292
parent7a7a7e6d9b8f78e73b45bdc436c5fbdbb7220c74
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