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)
committerMrutyunjay Sawant <msawant@nvidia.com>
Mon, 1 Apr 2013 10:02:12 +0000 (03:02 -0700)
commit51647b892ce26e18aa661dc20b3c87410fe12067
tree6cca5ef39e805520d79d9404692c96d0d5dac1d4
parentb0d8a1b159dc578f5b651f9fe61826efc2cbda4b
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
(cherry picked from commit cc22b4724cac21b9bf24f66560c1b4df7e7c9712)
Reviewed-on: http://git-master/r/211845
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
drivers/tty/serial/tegra_hsuart.c