aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tilcdc/tilcdc_drv.c
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2016-11-24 16:25:08 -0500
committerJyri Sarha <jsarha@ti.com>2016-11-30 07:19:53 -0500
commit75d7f277eefcbd25c154d81f6836d7fdefaba89c (patch)
tree349da7ee8a062fff0ef1fec293c839418f406987 /drivers/gpu/drm/tilcdc/tilcdc_drv.c
parent274c34dbe756d441e2c1925465569ef93d380541 (diff)
drm/tilcdc: Configure video mode to HW in enable() not in mode_set_nofb()
Configure video mode to HW in enable() call back. There is no reason to do it before that. This makes PM functions way easier because there is no HW context to save when screen is for instance blanked. This patch removes mode_set_nofb() call back from tilcdc. Signed-off-by: Jyri Sarha <jsarha@ti.com> Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_drv.c')
-rw-r--r--drivers/gpu/drm/tilcdc/tilcdc_drv.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
index b1bbbfefa728..5efb36948249 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
@@ -127,18 +127,12 @@ static int tilcdc_commit(struct drm_device *dev,
127 * current layout. 127 * current layout.
128 */ 128 */
129 129
130 /* Keep HW on while we commit the state. */
131 pm_runtime_get_sync(dev->dev);
132
133 drm_atomic_helper_commit_modeset_disables(dev, state); 130 drm_atomic_helper_commit_modeset_disables(dev, state);
134 131
135 drm_atomic_helper_commit_planes(dev, state, 0); 132 drm_atomic_helper_commit_planes(dev, state, 0);
136 133
137 drm_atomic_helper_commit_modeset_enables(dev, state); 134 drm_atomic_helper_commit_modeset_enables(dev, state);
138 135
139 /* Now HW should remain on if need becase the crtc is enabled */
140 pm_runtime_put_sync(dev->dev);
141
142 drm_atomic_helper_wait_for_vblanks(dev, state); 136 drm_atomic_helper_wait_for_vblanks(dev, state);
143 137
144 drm_atomic_helper_cleanup_planes(dev, state); 138 drm_atomic_helper_cleanup_planes(dev, state);