[PATCH 1/3] fbdev: sh-mobile: restore display size configuration

Subsystems: framebuffer layer, the rest

STALE5759d

2 messages, 2 authors, 2010-12-22 · open the first message on its own page

[PATCH 1/3] fbdev: sh-mobile: restore display size configuration

From: Guennadi Liakhovetski <hidden>
Date: 2010-12-21 10:46:26

An earlier patch replaced open-coded video-mode configuration from 
platform data by a call to fb_videomode_to_var(), thereby setting 
ofdisplay sizes have been accidentally lost. Restore them.

Signed-off-by: Guennadi Liakhovetski <redacted>
---
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index b02d97a..257ed0c 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -1238,12 +1238,14 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev)
 			mode = &default_720p;
 			num_cfg = 1;
 		} else {
-			num_cfg = ch->cfg.num_cfg;
+			num_cfg = cfg->num_cfg;
 		}
 
 		fb_videomode_to_modelist(mode, num_cfg, &info->modelist);
 
 		fb_videomode_to_var(var, mode);
+		var->width = cfg->lcd_size_cfg.width;
+		var->height = cfg->lcd_size_cfg.height;
 		/* Default Y virtual resolution is 2x panel size */
 		var->yres_virtual = var->yres * 2;
 		var->activate = FB_ACTIVATE_NOW;

Re: [PATCH 1/3] fbdev: sh-mobile: restore display size configuration

From: Paul Mundt <hidden>
Date: 2010-12-22 07:28:43

On Tue, Dec 21, 2010 at 11:46:26AM +0100, Guennadi Liakhovetski wrote:
An earlier patch replaced open-coded video-mode configuration from 
platform data by a call to fb_videomode_to_var(), thereby setting 
ofdisplay sizes have been accidentally lost. Restore them.
On Tue, Dec 21, 2010 at 11:46:35AM +0100, Guennadi Liakhovetski wrote:
Monitor EDID contains information about physical display sizes. Retrieve 
it and propagate to the framebuffer driver.
Both applied for .37, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help