@@ -2949,9 +2949,9 @@ bool intel_bios_is_valid_vbt(const void *buf, size_t size)
return vbt;
}
-static int intel_load_vbt_firmware(struct drm_i915_private *dev_priv)
+static int intel_load_vbt_firmware(struct drm_i915_private *dev_priv,
+ struct intel_vbt *vbt)
{
- struct intel_vbt *vbt = &dev_priv->display.vbt;
const struct firmware *fw = NULL;
const char *name = dev_priv->display.params.vbt_firmware;
int ret;
@@ -3153,7 +3153,7 @@ void intel_bios_init(struct drm_i915_private *i915)
init_vbt_defaults(i915);
- intel_load_vbt_firmware(i915);
+ intel_load_vbt_firmware(i915, vbt);
if (!vbt->vbt && opregion->asls)
intel_load_opregion_vbt(i915, opregion, vbt);
intel_vbt will be used to cache the vbt read from firmware. Make vbt firmware read variant operate on intel_vbt to cache the fw for future reference. Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> --- drivers/gpu/drm/i915/display/intel_bios.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)