]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00232660 EPDC: Wrong panel loaded at boot
authorMichael Minnick <michael.minnick@freescale.com>
Tue, 6 Nov 2012 19:21:50 +0000 (13:21 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:41 +0000 (08:35 +0200)
commit7ab040a88bfd058a10b8e4df16dab9afc9463858
tree90aad998190d2d5cb52593458adf291a58179ea9
parent8b74a5861bb22000ba66605cd4cb25025e3efb64
ENGR00232660 EPDC: Wrong panel loaded at boot

The wrong EPDC panel can be loaded at boot time if the machine
board file has multiple panel entries with the same video mode
parameter values. To reproduce, select a particular panel with
u-boot kernel command line parameters, for example:
video=mxcepdcfb:XYZZY

Add panel XYZZY to arch/arm/mach-mx6/board-mx6sl_evk.c after
an existing entry. Use the same video mode parameter settings
as the existing entry. On boot, the existing panel will be loaded
instead of the XYZZY panel because it comes earlier in the list
and happens to have the same video mode parameter values.

Solution: If the video mode parameter settings specified in
the call to msc_epdc_fb_set_par() match those of the panel
already loaded by mxc_epdc_fb_probe(), don't execute a
search for a new matching panel.

Signed-off-by: Michael Minnick <michael.minnick@freescale.com>
drivers/video/mxc/mxc_epdc_fb.c