Skip to content
Commit dad82ea3 authored by Jyri Sarha's avatar Jyri Sarha Committed by Dave Airlie
Browse files

drm/i2c: tda998x: Choose between atomic or non atomic dpms helper



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: default avatarJyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent d17e67de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment