]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/display: move xe->display initialization to xe_display_probe()
authorJani Nikula <jani.nikula@intel.com>
Fri, 16 May 2025 12:16:58 +0000 (15:16 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 20 May 2025 17:55:22 +0000 (20:55 +0300)
commit1e2803e565af3b7463c7615347510f7093945633
treee4f0a79baf38deb8d19adb8c8ef818e58dc19a4a
parented23224b3f5e5e938e5c97d246678702df98eb93
drm/xe/display: move xe->display initialization to xe_display_probe()

The future goal is to have intel_display_device_probe() create struct
intel_display. As the first step, postpone xe->display initialization
right before that call. This is the same location as in i915.

There's a subtle functional change here: xe->display will now be
initialized only if xe->info.probe_display.

The xe_display_create() function becomes empty, and can be removed. Move
its documentation to xe_display_probe()

Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://lore.kernel.org/r/6c3075739d84cecea258d686c3ef38455a61191c.1747397638.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/xe/display/xe_display.c
drivers/gpu/drm/xe/display/xe_display.h
drivers/gpu/drm/xe/xe_device.c