On Tue, 01 Dec 2026, Ville Syrjala <[email protected]> wrote: > From: Ville Syrjälä <[email protected]> > > Don't search through the VBT panel PnP IDs is the EDID
*if Reviewed-by: Jani Nikula <[email protected]> > is bogus. Avoids accidentally matching a fully zeroed VBT PnP > ID (not that we've ever seen that). > > Signed-off-by: Ville Syrjälä <[email protected]> > --- > drivers/gpu/drm/i915/display/intel_bios.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_bios.c > b/drivers/gpu/drm/i915/display/intel_bios.c > index 70da8613c8bf..9b8cc3821892 100644 > --- a/drivers/gpu/drm/i915/display/intel_bios.c > +++ b/drivers/gpu/drm/i915/display/intel_bios.c > @@ -740,11 +740,9 @@ static int pnpid_edid_get_panel_type(struct > intel_display *display, > { > struct drm_edid_product_id product_id; > > - if (!drm_edid) > + if (drm_edid_get_product_id(drm_edid, &product_id)) > return -1; > > - drm_edid_get_product_id(drm_edid, &product_id); > - > return pnpid_get_panel_type(display, &product_id, "EDID"); > } -- Jani Nikula, Intel
