• J
    drm/i2c: tda998x: Choose between atomic or non atomic dpms helper · dad82ea3
    Jyri Sarha 提交于
    Choose between atomic or non atomic connector dpms helper. If tda998x
    is connected to a drm driver that does not support atomic modeset
    calling drm_atomic_helper_connector_dpms() causes a crash when the
    connectors atomic state is not initialized. The patch implements a
    driver specific connector dpms helper that calls
    drm_atomic_helper_connector_dpms() if driver supports DRIVER_ATOMIC
    and otherwise it calls the legacy drm_helper_connector_dpms().
    
    Fixes commit 9736e988 ("drm/i2c: tda998x: Add support for atomic
    modesetting").
    Signed-off-by: NJyri Sarha <jsarha@ti.com>
    Signed-off-by: NDave Airlie <airlied@redhat.com>
    dad82ea3
tda998x_drv.c 47.1 KB