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>
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);