]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: dc: Avoid FRAME_END_INT conflict
authorDaniel Solomon <daniels@nvidia.com>
Fri, 15 Aug 2014 00:50:15 +0000 (17:50 -0700)
committerJon Mayo <jmayo@nvidia.com>
Tue, 26 Aug 2014 18:43:29 +0000 (11:43 -0700)
commitec9b7f555b9648e3aee0cd9781a92b14178a3344
tree6799145f83cdc4cdbbc85db5a8e70bdf6bf0e656
parentf23eb97970145d7c765cb3d0e747f40f32c5ba4f
video: tegra: dc: Avoid FRAME_END_INT conflict

Allowing for dc->lock to be acquired by the
caller in function tegra_dc_config_frame_end_intr
can result in FRAME_END_INT mask register being
overwritten if the lock is actually acquired by
another thread.

Refactor the critical section into its own function
and allow callers to call either function. Also
Change the name of tegra_dc_wait_for_frame_end
to indicate that it should be called with dc->lock
locked.

Bug 1534724

Change-Id: I87b1fc529f29f707a1bdadf18efa6bb19d6966b3
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/456988
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
drivers/video/tegra/dc/dc.c
drivers/video/tegra/dc/dc_priv.h
drivers/video/tegra/dc/dsi.c