• Bibby Hsieh's avatar
    drm/mediatek: Make sure previous message done or be aborted before send · 839cbf05
    Bibby Hsieh authored
    Mediatek CMDQ driver removed atomic parameter and implementation
    related to atomic. DRM driver need to make sure previous message
    done or be aborted before we send next message.
    
    If previous message is still waiting for event, it means the
    setting hasn't been updated into display hardware register,
    we can abort the message and send next message to update the
    newest setting into display hardware.
    If previous message already started, we have to wait it until
    transmission has been completed.
    
    So we flush mbox client before we send new message to controller
    driver.
    Signed-off-by: default avatarBibby Hsieh <bibby.hsieh@mediatek.com>
    Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
    839cbf05
mtk_drm_crtc.c 22.2 KB