aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2011-11-04 00:41:46 -0400
committerInki Dae <inki.dae@samsung.com>2011-11-15 00:58:45 -0500
commit84b46990cb2caf8efe20d5626e1d7e2e40bab832 (patch)
tree60695d2dc83eacabce393d6f54e0d5ef1971ffe7 /drivers/gpu
parent74ccc539bcebdb24afb74194223f92a96a7285ed (diff)
drm/exynos: restored kernel_fb_list when reiniting fb_helper
during recreating exynos_drm_fbdev as a new display device probes, fb_helper is reinitialized but kernel fb is not changed so kernel_fb_list should be restored after fb_helper is reinitialized. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fbdev.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
index 1f4b3d1a7713..74092a81c180 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
@@ -405,6 +405,18 @@ int exynos_drm_fbdev_reinit(struct drm_device *dev)
405 fb_helper = private->fb_helper; 405 fb_helper = private->fb_helper;
406 406
407 if (fb_helper) { 407 if (fb_helper) {
408 struct list_head temp_list;
409
410 INIT_LIST_HEAD(&temp_list);
411
412 /*
413 * fb_helper is reintialized but kernel fb is reused
414 * so kernel_fb_list need to be backuped and restored
415 */
416 if (!list_empty(&fb_helper->kernel_fb_list))
417 list_replace_init(&fb_helper->kernel_fb_list,
418 &temp_list);
419
408 drm_fb_helper_fini(fb_helper); 420 drm_fb_helper_fini(fb_helper);
409 421
410 ret = drm_fb_helper_init(dev, fb_helper, 422 ret = drm_fb_helper_init(dev, fb_helper,
@@ -414,6 +426,9 @@ int exynos_drm_fbdev_reinit(struct drm_device *dev)
414 return ret; 426 return ret;
415 } 427 }
416 428
429 if (!list_empty(&temp_list))
430 list_replace(&temp_list, &fb_helper->kernel_fb_list);
431
417 ret = drm_fb_helper_single_add_all_connectors(fb_helper); 432 ret = drm_fb_helper_single_add_all_connectors(fb_helper);
418 if (ret < 0) { 433 if (ret < 0) {
419 DRM_ERROR("failed to add fb helper to connectors\n"); 434 DRM_ERROR("failed to add fb helper to connectors\n");