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:06:01 +0000 (12:06 +0200)
commit4e4b72c0ee3d549e62d92d4ace69ddccd9a7136b
tree7b5105d94f9ee936b90c9360adc2c336e9db2665
parent14bfe118dd7d2ee8a00dcf0b880889922b365563
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