video: tegra: dc: Set WIN_OPTIONS with valid phys addr
authorMin-wuk Lee <mlee@nvidia.com>
Thu, 30 May 2013 10:12:56 +0000 (19:12 +0900)
committerRiham Haidar <rhaidar@nvidia.com>
Sat, 1 Jun 2013 01:01:59 +0000 (18:01 -0700)
commitd6f6d7291dde16f238dee903b1c97fdb80f9e3d8
tree56a9c2621caa46e9d1aa81e817805cfcb19252ef
parent21694e460574c1228c01c4cae3a7071026020096
video: tegra: dc: Set WIN_OPTIONS with valid phys addr

Do not set WIN_OPTIONS until window physical address is valid.
After suspend, window handle becomes not valid, but UNBLANK
in resume tries to set window enabled and update for Window A,
before its new physical address is set. This makes DECERR_EMEM
error and glitches in resume.

Bug 1294791

Change-Id: I22aedd5e33056d4c0ec9fcd84f28597ec6164889
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/234087
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
drivers/video/tegra/dc/dc.c
drivers/video/tegra/dc/window.c