]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: fb: update VC before fbcon during hotplug
authorNaveen Kumar S <nkumars@nvidia.com>
Sat, 10 Oct 2015 14:01:35 +0000 (19:31 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Mon, 12 Oct 2015 18:44:36 +0000 (11:44 -0700)
fbcon depends on the modes known to virtual console while updating
its own mode. Hence during a hotplug event, update virtual consoles
with new modes before updating fbcon mode.

bug 1693204

Change-Id: I6430ef27d186b8ac529a7e2c2929e383b0c2806e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/815661
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/video/tegra/fb.c

index 63dc84d15c187847f8427ab05de2a9c758882cbe..53485da90355bc7d8f4374ee20b0caa0b3ee3188 100644 (file)
@@ -687,10 +687,10 @@ void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info,
        fb_info->info->state =  FBINFO_STATE_RUNNING;
 #ifdef CONFIG_FRAMEBUFFER_CONSOLE
        console_lock();
-       fb_notifier_call_chain(FB_EVENT_NEW_MODELIST, &event);
        tegra_dc_set_fb_mode(fb_info->win.dc, specs->modedb, false);
        fb_videomode_to_var(&fb_info->info->var, &specs->modedb[0]);
        fb_notifier_call_chain(FB_EVENT_MODE_CHANGE_ALL, &event);
+       fb_notifier_call_chain(FB_EVENT_NEW_MODELIST, &event);
        console_unlock();
 #else
        fb_notifier_call_chain(FB_EVENT_NEW_MODELIST, &event);