]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00321817-01 HDMI: Dispaly blank after resume
authorSandor Yu <R01008@freescale.com>
Thu, 17 Jul 2014 12:18:32 +0000 (20:18 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:30 +0000 (21:18 -0600)
commit27336f1d74e9488d982e8d3351cae9d5b983d4d2
tree7970095fc1ebb3bf2a5c8aa157512aaafb9fb360
parentf0dea2696a4ef966051e06ba850310b4f43b5800
ENGR00321817-01 HDMI: Dispaly blank after resume

Issue reproduce steps:
1. Boot up without HDMI cable plugin
2. Insert the HDMI cable.
3. echo mem > /sys/power/state , enter suspend,
4. resume it,
System can resume from suspend but display is blank.
Error log:
mxc_sdc_fb fb.31: Unable to allocate framebuffer memory
detected fb_set_par error, error code: -12

In mxc hdmi driver, if system bootup without hdmi cable plugin,
driver will create a default modelist.

In fbcon driver, array fb_display[] initialized when system bootup
and save current mode pointer that point to default modelist.

When hdmi cable is plugin the modelist will rebuild according edid
data, but the pointer of video mode in fb_display[] is not updated.

When system resume, fbcon will use the invalidate pointer to
configured framebuffer, framebuffer will crash.

Add function fb_new_modelist() after modelist is rebuild to fix the
issue.

Signed-off-by: Sandor Yu <R01008@freescale.com>
(cherry picked from commit 5687cb8dc5099acdb0e3a0542f666326764d558c)
(cherry picked from commit 5451976da30e34db74069d7197748556f9eb5c69)
drivers/video/mxc/mxc_hdmi.c