Commit 99fa4bc2 authored by Imre Deak's avatar Imre Deak

drm/i915/icl: Simplify release of encoder power refs

We can unconditionally release the power references during encoder
disabling. The references for each port used by the encoder are
guaranteed to be enabled at this point.

Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190405153657.20921-2-imre.deak@intel.com
parent 3a52fb7e
...@@ -1146,13 +1146,11 @@ static void gen11_dsi_disable_io_power(struct intel_encoder *encoder) ...@@ -1146,13 +1146,11 @@ static void gen11_dsi_disable_io_power(struct intel_encoder *encoder)
intel_wakeref_t wakeref; intel_wakeref_t wakeref;
wakeref = fetch_and_zero(&intel_dsi->io_wakeref[port]); wakeref = fetch_and_zero(&intel_dsi->io_wakeref[port]);
if (wakeref) { intel_display_power_put(dev_priv,
intel_display_power_put(dev_priv, port == PORT_A ?
port == PORT_A ? POWER_DOMAIN_PORT_DDI_A_IO :
POWER_DOMAIN_PORT_DDI_A_IO : POWER_DOMAIN_PORT_DDI_B_IO,
POWER_DOMAIN_PORT_DDI_B_IO, wakeref);
wakeref);
}
} }
/* set mode to DDI */ /* set mode to DDI */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment