Skip to content

Commit

Permalink
drm/exynos: fimd: modify condition in fimd resume
Browse files Browse the repository at this point in the history
If fimd is runtime suspended (by DPMS OFF), fimd_suspend does not
call fimd_activate(false) and just returns. Similarily the check in
fimd_resume should not resume if previously runtime_suspended.
Instead the existing check does the opposite. So if fimd was not
runtime suspended, suspend will turn off fimd but resume will not turn
it on.  This patch fixes this issue by reversing the condition.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Prathyush K authored and Inki Dae committed Jan 7, 2013
1 parent 5cbd419 commit 28998af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos_drm_fimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ static int fimd_resume(struct device *dev)
* of pm runtime would still be 1 so in this case, fimd driver
* should be on directly not drawing on pm runtime interface.
*/
if (pm_runtime_suspended(dev)) {
if (!pm_runtime_suspended(dev)) {
int ret;

ret = fimd_activate(ctx, true);
Expand Down

0 comments on commit 28998af

Please sign in to comment.