• Ville Syrjälä's avatar
    drm/i915: Introduce intel_hpd_enable_detection() · d28cdc43
    Ville Syrjälä authored
    Add a mechanism by which we can enable the HPD sense for
    individual encoders.
    
    This will be used during eDP probing to figure out if
    anything is actually connected. The normal intel_hpd_irq_setup()
    thing doesn't work since we only do that after probing the
    outputs, and we only enable HPD sense for encoders that were
    successfully probed.
    
    The other idea that crossed my minds was to just turn on
    HPD sense for all pins before output probing and let hpd_irq_setup()
    clean it up afterwards. But that doesn't work for BXT/GLK where
    the HPD invert information comes from the VBT child device.
    So looks like this really needs to be per-encoder.
    
    v2: Give it a better name (Jani)
    v3: Deal with mtl
    
    Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> #v2
    Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230417131728.7705-3-ville.syrjala@linux.intel.com
    d28cdc43
i915_irq.c 128 KB