serial: tegra_hsuart: Fix sleeping while atomic
authorColin Cross <ccross@android.com>
Fri, 5 Nov 2010 00:10:09 +0000 (17:10 -0700)
committerColin Cross <ccross@android.com>
Fri, 5 Nov 2010 00:49:47 +0000 (17:49 -0700)
commitf0c185334383d9c65977a820acd06ecadaf3a070
treeacaa59fa0cac83f0b8a0623987b78c1803bb2a07
parentc41283c28bf8296cfe27f843a7fa287b4d2ab9dd
serial: tegra_hsuart: Fix sleeping while atomic

Move the flush_work outside of stop_tx, do it during suspend and
shutdown instead.  Move the tty portion of the tx work into
the dma complete callback, and only handle polling on the fifo and
then requeuing the dma in the work function.

Change-Id: I56db6504d35e5e7019379dc8a4323b4a27c72e59
Signed-off-by: Colin Cross <ccross@android.com>
drivers/serial/tegra_hsuart.c