]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: dc: remove "dc->enable" check in "tegra_dc_update_cmu_aligned"
authorArun Swain <arswain@nvidia.com>
Tue, 16 Dec 2014 22:57:24 +0000 (14:57 -0800)
committerMitch Luban <mluban@nvidia.com>
Tue, 27 Jan 2015 19:53:36 +0000 (11:53 -0800)
commit3d7cf69eeaee6f5e22ff4af8095f8cd142ee4332
tree392f760b1264241ee4b6dc01819fadf377d73217
parent14186ce8c360a05664aa2235b566140e5d89a790
video: tegra: dc: remove "dc->enable" check in "tegra_dc_update_cmu_aligned"

On bootup, NvCPL will phase-in user-set CMU change.
If the user disables the panel during that first
phase-in, ioctls to update CMU after DC gets
disabled will be lost.

To avoid this we simply do not check whether DC
is enabled, but go ahead and cache the data from
the ioctl anyway. Next time DC is enabled, CMU
will be updated with the most recently cached data.

Change-Id: I6144ae306dffbc895d00e861b0c643cc564f8594
Signed-off-by: Arun Swain <arswain@nvidia.com>
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/664646
(cherry picked from commit 85987c322bdebe9571252ddfbff149c2a7f4ddc4)
Reviewed-on: http://git-master/r/673845
(cherry picked from commit e04ee5beacae4ea667715afa5fb0447618859c3c)
Reviewed-on: http://git-master/r/677141
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
drivers/video/tegra/dc/dc.c