• Daniel Vetter's avatar
    drm/i915: use wait_for_vblank instead of msleep(17) · ab527efc
    Daniel Vetter authored
    17 ms is eerily close to 60 Hz ^-1
    
    Unfortunately this goes back to the original DP enabling for ilk, and
    unfortunately does not come with a reason for it's existance attached.
    
    Some closer inspection of the code and DP specs shows that we set the
    idle link pattern before we disable the port. And it seems like that
    the DP spec (or at least our hw) only switch to the idle pattern on
    the next vblank. Hence a vblank wait at this spot makes _much_ more
    sense than a really long wait.
    
    v2: Rebase fixup.
    
    v3: Add comment requested by Paulo Zanoni saying that we don't really
    know what this wait is for.
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    ab527efc
intel_dp.c 81.8 KB