video: tegra: fb: Update and synchronise dc window

Update and synchronise DC window after enabling DC while unblanking.

Bug 1284137

Change-Id: I2edeac44185b0aedfe1d538e38e319754443ff1d
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/229227
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
video: tegra: dc: remove enable/disable in set_par

Remove a work around that is no longer necessary. This fixes a strobing display
issue when scrolling or double buffering.

Bug 1161314

Change-Id: I7f74c089461b01c2f2933e14094e3190cef4726a
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/162135
Reviewed-by: Automatic_Commit_Validation_User
video: tegra: fb: initialize mode width and height

Ensure the modedb modes have valid panel dimensions.

Change-Id: I1467b6f67021e25d89dd3ed852c6b5b13b26854a
Signed-off-by: Michael I. Gold <gold@nvidia.com>
Reviewed-on: http://git-master/r/166373
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Squashed commit of:
 video: tegra: fb: conditionalize screen panning

Conditionalize screen panning to only cases where display parameters change.

Bug 1046614

Change-Id: I9be3b9b474f90dc0966161f6b0b00d439eab30e7
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/169218
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>

 video: tegra: fb: fix condition for screen panning

Check for screen panning by comparing with previously saved display parameters.

Bug 1046614

Change-Id: If08f2748ef366198edca1194c2c8f1cd1667127c
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
(cherry picked from commit b097592bea3ab2d2b8d7e4faecab4e30d540fb3d)
Reviewed-on: http://git-master/r/188775
Tested-by: Peter Zu <pzu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
video: tegra: avoid null deref on nvdps read

When reading nvdps sysfs file, check mode to avoid a null dereference.

Bug 1032235

Change-Id: I27c125c887e7653d953cf15b4d96d889ef36652f
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/221329
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Philip Rakity <prakity@nvidia.com>
Reviewed-by: Philip Rakity <prakity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Merge branch 'cm-11.0' into kk_mkt