drivers: video: tegra: Fix race condition
authorAly Hirani <ahirani@nvidia.com>
Thu, 7 Jan 2016 22:18:28 +0000 (14:18 -0800)
committerMandar Padmawar <mpadmawar@nvidia.com>
Fri, 8 Jan 2016 03:43:02 +0000 (19:43 -0800)
commit1d6d4aef0d51abeb4f26072d2925da87d539fdb5
treedca260088cbf9f5154fba4bebf6b83bc22646177
parent641b423efeea5161586a85a16ea43be9389a4a43
drivers: video: tegra: Fix race condition

Re-reading tegra_dc_hpd() in the controller_enable() causes a race
condition. By the time controller_enable is called, tegra_dc_hpd() might
be false.

Instead, the correct way is to tie the hdcp state to the
controller_enable and controller_disable and hence, force enable hdcp.

Bug 1717496

Change-Id: Ie05de9c555ef6254f6877aeb35c970997a3d3d16
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/930172
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
drivers/video/tegra/dc/hdmi2.0.c