OSDN Git Service

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)
commit608ed4ab240f2d09f2fc1e5f8631dfe8570f9f80
tree5fd96e8f76e57516ad2c6567b79d2a1f0523a0b1
parentd4de753526f4d99f541f1b6ed1d963005c09700c
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