• Archit Taneja's avatar
    drm/msm/mdp4: Initialize LCDC encoder even if panel driver isn't available · a6bf7f63
    Archit Taneja authored
    Currently, the driver defers if it doesn't find a drm_panel. This forces
    us to have a drm_panel, if not, the driver isn't usable.
    
    Make the lcdc encoder initialization independent of the availability of
    the drm panel. We only check if there is a panel node specified in DT. If
    it isn't, then we don't initialize the encoder at all. The panel node is
    passed to the lcdc encoder and lvds connector drivers.
    
    The connector driver takes the responsibility to retrieve the drm_panel
    from the panel node, and update the status on whether the panel is
    connected or not. This makes the panel usable even if the drm_panel
    driver is inserted as a module later on.
    Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
    Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    a6bf7f63
mdp4_kms.h 7.06 KB