• Daniel Vetter's avatar
    drm: don't call ->firstopen for KMS drivers · 7d14bb6b
    Daniel Vetter authored
    It has way too much potential for driver writers to do stupid things
    like delayed hw setup because the load sequence is somehow racy (e.g.
    the imx driver in staging). So don't call it for modesetting drivers,
    which reduces the complexity of the drm core -> driver interface a
    notch.
    
    v2: Don't forget to update DocBook.
    
    v3: Go with Laurent's slightly more elaborate proposal for the DocBook
    update. Add a few words on top of his diff to elaborate a bit on what
    KMS drivers should and shouldn't do in lastclose. There was already a
    paragraph present talking about restoring properties, I've simply
    extended that one.
    
    Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    7d14bb6b
drm_fops.c 15.6 KB