OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:20:54 +0000 (12:20 +0200)
commit6470aa05ae157790b1a694a77cbe63aa2146a438
treec0faa6de44650092e7f24f4af02a024c5ed5f79d
parent7fbcb7d1031d288364c2197e51b83d8cb3cdd51c
drm/gma500/cdv: Check vbt config bits when detecting lvds panels

commit 7c420636860a719049fae9403e2c87804f53bdde upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/gma500/cdv_intel_lvds.c
drivers/gpu/drm/gma500/intel_bios.c
drivers/gpu/drm/gma500/psb_drv.h