OSDN Git Service

drm/i915/dp_mst: Move clearing the ACT sent flag closer to its polling
authorImre Deak <imre.deak@intel.com>
Tue, 16 Jun 2020 14:18:52 +0000 (17:18 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 23 Jun 2020 07:12:16 +0000 (10:12 +0300)
commite60b8672526cc0e1a033380998eff6978b8d3e09
tree6052d23f66ecc1ea543478517fc52220204465eb
parent80a8cecf62a5917e27c85d13430f7346df57883f
drm/i915/dp_mst: Move clearing the ACT sent flag closer to its polling

During transcoder enabling we'll configure the transcoder in MST mode
and enable the VC payload allocation, which will start the ACT sequence.
Before waiting for the ACT sequence completion, we need to clear the ACT
sent flag, but based on the above we can do this right before enabling
the transcoder.

For clarity, move the flag clearing closer to where we wait for it.

While at it also factor out some common code.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200616141855.746-3-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c