]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i2c: tda998x: Choose between atomic or non atomic dpms helper
authorJyri Sarha <jsarha@ti.com>
Sat, 16 Jan 2016 20:17:54 +0000 (22:17 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Mar 2016 01:10:03 +0000 (11:10 +1000)
commitdad82ea3ef4b9dc97ca5ec718abc6b0986f1aaaf
treea6946172d253ef397b8cb162b794a08d6e4f3bc9
parentd17e67de6e81394624685f16f174453bd561d48b
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 9736e988d328 ("drm/i2c: tda998x: Add support for atomic
modesetting").

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i2c/tda998x_drv.c