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
(cherry picked from commit
c7d1081f7601957b17eab7a41562c77614503bf0)
Reviewed-on: http://git-master/r/820819
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@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);