]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add an update_pipe callback to intel_encoder and call this on fastsets...
authorHans de Goede <hdegoede@redhat.com>
Thu, 20 Dec 2018 13:21:18 +0000 (14:21 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 25 Dec 2018 08:10:00 +0000 (09:10 +0100)
commitbc8bbccb88c52a8dc8c1963655982020cc153a41
tree5fd96e8f76e57516ad2c6567b79d2a1f0523a0b1
parent28f2d0defb0d092275ca4e81ddcd1558e61173ae
drm/i915: Add an update_pipe callback to intel_encoder and call this on fastsets (v2)

When we are doing a fastset (needs_modeset=false, update_pipe=true) we
may need to update some encoder-level things such as checking that PSR
is enabled.

This commit adds an update_pipe callback to intel_encoder and a new
intel_encoders_update_pipe helper which calls this for all encoders
connected to a crtc. The new intel_encoders_update_pipe helper is called
from intel_update_crtc when doing a fastset.

Changes in v2:
-Name the new encoder callback update_pipe instead of just update

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181220132120.15318-1-hdegoede@redhat.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h