drm/gma500/psb: Actually use VBT mode when it is found
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Tue, 18 Apr 2017 11:43:32 +0000 (13:43 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 15 Sep 2017 17:30:47 +0000 (18:30 +0100)
commitb545c77ea57890231f58fd551449ec679288c1a3
tree3d8a0c63a06e2628bdde65720b067afceacaf738
parentaf0b6ca74ba5349f13faf0159ad4f6de214d448a
drm/gma500/psb: Actually use VBT mode when it is found

commit 82bc9a42cf854fdf63155759c0aa790bd1f361b0 upstream.

With LVDS we were incorrectly picking the pre-programmed mode instead of
the prefered mode provided by VBT. Make sure we pick the VBT mode if
one is provided. It is likely that the mode read-out code is still wrong
but this patch fixes the immediate problem on most machines.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78562
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170418114332.12183-1-patrik.r.jakobsson@gmail.com
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/staging/gma500/psb_intel_lvds.c