drm/i915/bios: don't initialize fields based on vbt version
In theory, these might clobber information for older VBT versions. We might have to store the BDB version for later parsing, but currently all code accessing these fields will only use them on newer platforms with new enough BDB versions. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/0232d9cb258e8f83c4180cdb8aad1459a312ec2a.1506586821.git.jani.nikula@intel.com
This commit is contained in:
parent
a87145ca56
commit
2d936f1cf7
1 changed files with 0 additions and 13 deletions
|
@ -1347,19 +1347,6 @@ parse_device_mapping(struct drm_i915_private *dev_priv,
|
|||
*/
|
||||
memcpy(child_dev_ptr, child,
|
||||
min_t(size_t, defs->child_dev_size, sizeof(*child)));
|
||||
|
||||
/*
|
||||
* copied full block, now init values when they are not
|
||||
* available in current version
|
||||
*/
|
||||
if (bdb->version < 196) {
|
||||
/* Set default values for bits added from v196 */
|
||||
child_dev_ptr->iboost = 0;
|
||||
child_dev_ptr->hpd_invert = 0;
|
||||
}
|
||||
|
||||
if (bdb->version < 192)
|
||||
child_dev_ptr->lspcon = 0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue