tty: serial: tegra: wait for tasklets during shutdown
authorSang-Hun Lee <sanlee@nvidia.com>
Thu, 21 Mar 2013 23:44:37 +0000 (16:44 -0700)
committerSimone Willett <swillett@nvidia.com>
Tue, 26 Mar 2013 17:32:53 +0000 (10:32 -0700)
commitcc22b4724cac21b9bf24f66560c1b4df7e7c9712
tree5015067c99035fc3b73bbbb1db17bca1a2340143
parent97cba38a3225f6642fa03f0f81767b2b1c3f84b8
tty: serial: tegra: wait for tasklets during shutdown

Problem description:
 - Race between tegra_uart_tasklet_action and tegra_shutdown
 - When uart_close calls tegra_shutdown, it removes tty_struct
   from tty_port

Fix description:
 - Wait for tasklets to complete within tegra_shutdown before
   returning to the caller

Bug 1246098

Change-Id: Ic211d6c8b9a5e0e6a7dc75e9dffcf6315b776cd7
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/211843
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
drivers/tty/serial/tegra_hsuart.c