drm/i915/sdvo: fix panel_type initialization
authorJani Nikula <jani.nikula@intel.com>
Thu, 3 Aug 2023 12:27:06 +0000 (15:27 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 14 Aug 2023 15:59:26 +0000 (11:59 -0400)
commit2002eb6d3ea954dde9f8a223018d5335779937d0
tree5accae1d107da6f095ac7c6fd10b88cb671ecd2a
parent5598c9bfdb81f40f2f5d769b342d25bff74b07a6
drm/i915/sdvo: fix panel_type initialization

Commit 3f9ffce5765d ("drm/i915: Do panel VBT init early if the VBT
declares an explicit panel type") started using -1 as the value for
unset panel_type. It gets initialized in intel_panel_init_alloc(), but
the SDVO code never calls it.

Call intel_panel_init_alloc() to initialize the panel, including the
panel_type.

Reported-by: Tomi Leppänen <tomi@tomin.site>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8896
Fixes: 3f9ffce5765d ("drm/i915: Do panel VBT init early if the VBT declares an explicit panel type")
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: <stable@vger.kernel.org> # v6.1+
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Tested-by: Tomi Leppänen <tomi@tomin.site>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230803122706.838721-1-jani.nikula@intel.com
(cherry picked from commit 26e60294e8eacedc8ebb33405b2c375fd80e0900)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_sdvo.c