OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Jun 2017 10:07:49 +0000 (12:07 +0200)
commit670821b9482d037915e75bdd307ec87f231dd70a
tree50a831fd26c4bd0a01e59e4de557a99f085bab3e
parent74b416367b4ea3aad7c4ff566345a4cf3cf5a80b
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/gma500/psb_intel_lvds.c