Skip to content
  • Takashi Iwai's avatar
    drm/i915, HD-audio: Don't continue probing when nomodeset is given · 74b0c2d7
    Takashi Iwai authored
    
    
    When a machine is booted with nomodeset option, i915 driver skips the
    whole initialization.  Meanwhile, HD-audio tries to bind wth i915 just
    by request_symbol() without knowing that the initialization was
    skipped, and eventually it hits WARN_ON() in i915_request_power_well()
    and i915_release_power_well() wrongly but still continues probing,
    even though it doesn't work at all.
    
    In this patch, both functions are changed to return an error in case
    of uninitialized state instead of WARN_ON(), so that HD-audio driver
    can give up HDMI controller initialization at the right time.
    
    Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Cc: <stable@vger.kernel.org> [3.15]
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    74b0c2d7