summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRaul Munoz <raul.munoz@toradex.com>2014-07-14 13:43:42 +0200
committerRaul Munoz <raul.munoz@toradex.com>2014-07-14 13:43:42 +0200
commit491f263ebfb338c59abfbde6d4e0e7256a0150fa (patch)
tree6101c9dbe73852ec2c0a6f599eac68d186fa004c /drivers
parentf162e88fc6aac0fef03c49c1ac596995a03ff134 (diff)
fbcon: workaround full screen boot-logo issue
Force round down in division calculating required logo height as preceding code did round up as follows: logo_lines = DIV_ROUND_UP(logo_height, vc->vc_font.height); Which resulted in no boot-logo shown at all due to not enough lines being available.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/console/fbcon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index 8745637e4b7e..39c7baad55d2 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -633,6 +633,9 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
kfree(save);
}
+ /* workaround full screen boot-logo issue */
+ logo_lines = logo_lines - 1;
+
if (logo_lines > vc->vc_bottom) {
logo_shown = FBCON_LOGO_CANSHOW;
printk(KERN_INFO