提交 60b02a09 编写于 作者: V Ville Syrjälä

drm/i915/pps: Introduce pps_delays_valid()

Add a small helper that determines if the PPS delays have been
initialized or not.
Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220510104242.6099-5-ville.syrjala@linux.intel.comReviewed-by: NJani Nikula <jani.nikula@intel.com>
上级 75bd0d5e
...@@ -1159,6 +1159,12 @@ intel_pps_verify_state(struct intel_dp *intel_dp) ...@@ -1159,6 +1159,12 @@ intel_pps_verify_state(struct intel_dp *intel_dp)
} }
} }
static bool pps_delays_valid(struct edp_power_seq *delays)
{
return delays->t1_t3 || delays->t8 || delays->t9 ||
delays->t10 || delays->t11_t12;
}
static void pps_init_delays_cur(struct intel_dp *intel_dp, static void pps_init_delays_cur(struct intel_dp *intel_dp,
struct edp_power_seq *cur) struct edp_power_seq *cur)
{ {
...@@ -1230,7 +1236,7 @@ static void pps_init_delays(struct intel_dp *intel_dp) ...@@ -1230,7 +1236,7 @@ static void pps_init_delays(struct intel_dp *intel_dp)
lockdep_assert_held(&dev_priv->pps_mutex); lockdep_assert_held(&dev_priv->pps_mutex);
/* already initialized? */ /* already initialized? */
if (final->t11_t12 != 0) if (pps_delays_valid(final))
return; return;
pps_init_delays_cur(intel_dp, &cur); pps_init_delays_cur(intel_dp, &cur);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册