misc: cec: Fix bug potentially cause system hang
authorXia Yang <xiay@nvidia.com>
Tue, 29 Oct 2013 00:51:50 +0000 (17:51 -0700)
committerBharat Nihalani <bnihalani@nvidia.com>
Thu, 19 Dec 2013 03:07:57 +0000 (19:07 -0800)
commitb5d3b7d0d164cfc420f1623af0eb923d46005110
treed8dcab84dae3a388cd2bfc2113be83f96ec57d7e
parentfacb3ad4b8ef8d40c717c0cdc8e8e74c2b2f962e
misc: cec: Fix bug potentially cause system hang

Remove wait_event_interruptible() from interrupt context
Change init_done to be atomic_t and reset as early as possible

Bug 1395893

Change-Id: Ib0cf423a3405293000b0c0d9aa105da5bba22e53
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/304631
(cherry picked from commit ef034436a3c8aaf7a9ce5dd9ebaf8dc90dbcce4b)
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/346042
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/misc/tegra-cec/tegra_cec.c
drivers/misc/tegra-cec/tegra_cec.h