]> Git Repo - J-linux.git/commitdiff
drm/i915/bios: Tolerate devdata==NULL in intel_bios_encoder_supports_dp_dual_mode()
authorVille Syrjälä <[email protected]>
Tue, 19 Mar 2024 09:24:42 +0000 (11:24 +0200)
committerRodrigo Vivi <[email protected]>
Thu, 28 Mar 2024 16:16:17 +0000 (12:16 -0400)
If we have no VBT, or the VBT didn't declare the encoder
in question, we won't have the 'devdata' for the encoder.
Instead of oopsing just bail early.

We won't be able to tell whether the port is DP++ or not,
but so be it.

Cc: [email protected]
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10464
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jani Nikula <[email protected]>
(cherry picked from commit 26410896206342c8a80d2b027923e9ee7d33b733)
Signed-off-by: Rodrigo Vivi <[email protected]>
drivers/gpu/drm/i915/display/intel_bios.c

index 9328601e4e9fa80f04240e8b87a63a4a765eb0de..52bd3576835b6ba15b31d8e17a94e9b65f612b1c 100644 (file)
@@ -3382,6 +3382,9 @@ bool intel_bios_encoder_supports_dp_dual_mode(const struct intel_bios_encoder_da
 {
        const struct child_device_config *child = &devdata->child;
 
+       if (!devdata)
+               return false;
+
        if (!intel_bios_encoder_supports_dp(devdata) ||
            !intel_bios_encoder_supports_hdmi(devdata))
                return false;
This page took 0.066727 seconds and 4 git commands to generate.