drm/i915: Add intel_modeset_probe_defer() helper
authorHans de Goede <hdegoede@redhat.com>
Tue, 5 Oct 2021 20:23:21 +0000 (22:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 9 Dec 2021 15:09:35 +0000 (16:09 +0100)
commit94b541f53db1ec6b99fc2186b084177cf6e18824
tree61f8a35c9de8fd962a51bc074a288ccbe82c8834
parent7d41745acfa722309dc7dbdcf8801452c53e936b
drm/i915: Add intel_modeset_probe_defer() helper

The upcoming privacy-screen support adds another check for
deferring probe till some other drivers have bound first.

Factor out the current vga_switcheroo_client_probe_defer() check
into an intel_modeset_probe_defer() helper, so that further
probe-deferral checks can be added there.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211005202322.700909-10-hdegoede@redhat.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/i915_pci.c