drm/gma500/cdv: Check vbt config bits when detecting lvds panels
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Tue, 16 Apr 2019 11:46:07 +0000 (13:46 +0200)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Tue, 21 May 2019 08:59:00 +0000 (10:59 +0200)
commit7c420636860a719049fae9403e2c87804f53bdde
tree3217af09658f608c9ee8367a16c50f7484c62b13
parent243c4b78923d5067b0071e285d6a90c45369ffe0
drm/gma500/cdv: Check vbt config bits when detecting lvds panels

Some machines have an lvds child device in vbt even though a panel is
not attached. To make detection more reliable we now also check the lvds
config bits available in the vbt.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1665766
Cc: stable@vger.kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190416114607.1072-1-patrik.r.jakobsson@gmail.com
drivers/gpu/drm/gma500/cdv_intel_lvds.c
drivers/gpu/drm/gma500/intel_bios.c
drivers/gpu/drm/gma500/psb_drv.h