• Jesse Barnes's avatar
    drm/i915: fix suspend/resume breakage in lid notifier · 06891e27
    Jesse Barnes authored
    We now unconditionally restore the mode at lid open time since some
    platforms turn off the panel, pipes or other display elements when the
    lid is closed.  There's a problem with doing this at resume time
    however.
    
    At resume time, we'll get a lid event, but restoring the mode at that
    time may not be safe (e.g. if we get the lid event before global state
    has been restored), so check the suspended state and make sure our
    restore is locked against other mode updates.
    Tested-by: default avatarBen Gamari <bgamari.foss@gmail.com>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    06891e27
intel_lvds.c 30.4 KB