Commit 1a886482 authored by Jani Nikula's avatar Jani Nikula

drm/i915/display: prefer intel_de_wait*() functions over uncore ones

Prefer the intel_de_wait*() functions over the uncore interface.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarGustavo Sousa <gustavo.sousa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240320160123.2904609-2-jani.nikula@intel.com
parent b2e0059b
...@@ -399,11 +399,8 @@ static void _bxt_ddi_phy_init(struct drm_i915_private *dev_priv, ...@@ -399,11 +399,8 @@ static void _bxt_ddi_phy_init(struct drm_i915_private *dev_priv,
* The flag should get set in 100us according to the HW team, but * The flag should get set in 100us according to the HW team, but
* use 1ms due to occasional timeouts observed with that. * use 1ms due to occasional timeouts observed with that.
*/ */
if (intel_wait_for_register_fw(&dev_priv->uncore, if (intel_de_wait_fw(dev_priv, BXT_PORT_CL1CM_DW0(phy),
BXT_PORT_CL1CM_DW0(phy), PHY_RESERVED | PHY_POWER_GOOD, PHY_POWER_GOOD, 1))
PHY_RESERVED | PHY_POWER_GOOD,
PHY_POWER_GOOD,
1))
drm_err(&dev_priv->drm, "timeout during PHY%d power on\n", drm_err(&dev_priv->drm, "timeout during PHY%d power on\n",
phy); phy);
......
...@@ -369,7 +369,7 @@ static int intel_hdcp_load_keys(struct drm_i915_private *i915) ...@@ -369,7 +369,7 @@ static int intel_hdcp_load_keys(struct drm_i915_private *i915)
} }
/* Wait for the keys to load (500us) */ /* Wait for the keys to load (500us) */
ret = __intel_wait_for_register(&i915->uncore, HDCP_KEY_STATUS, ret = intel_de_wait_custom(i915, HDCP_KEY_STATUS,
HDCP_KEY_LOAD_DONE, HDCP_KEY_LOAD_DONE, HDCP_KEY_LOAD_DONE, HDCP_KEY_LOAD_DONE,
10, 1, &val); 10, 1, &val);
if (ret) if (ret)
......
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