mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/i915/display: prefer intel_de_wait*() functions over uncore ones
Prefer the intel_de_wait*() functions over the uncore interface. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240320160123.2904609-2-jani.nikula@intel.com
This commit is contained in:
parent
b2e0059bcd
commit
1a8864822a
|
|
@ -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
|
||||
* use 1ms due to occasional timeouts observed with that.
|
||||
*/
|
||||
if (intel_wait_for_register_fw(&dev_priv->uncore,
|
||||
BXT_PORT_CL1CM_DW0(phy),
|
||||
PHY_RESERVED | PHY_POWER_GOOD,
|
||||
PHY_POWER_GOOD,
|
||||
1))
|
||||
if (intel_de_wait_fw(dev_priv, BXT_PORT_CL1CM_DW0(phy),
|
||||
PHY_RESERVED | PHY_POWER_GOOD, PHY_POWER_GOOD, 1))
|
||||
drm_err(&dev_priv->drm, "timeout during PHY%d power on\n",
|
||||
phy);
|
||||
|
||||
|
|
|
|||
|
|
@ -369,9 +369,9 @@ static int intel_hdcp_load_keys(struct drm_i915_private *i915)
|
|||
}
|
||||
|
||||
/* Wait for the keys to load (500us) */
|
||||
ret = __intel_wait_for_register(&i915->uncore, HDCP_KEY_STATUS,
|
||||
HDCP_KEY_LOAD_DONE, HDCP_KEY_LOAD_DONE,
|
||||
10, 1, &val);
|
||||
ret = intel_de_wait_custom(i915, HDCP_KEY_STATUS,
|
||||
HDCP_KEY_LOAD_DONE, HDCP_KEY_LOAD_DONE,
|
||||
10, 1, &val);
|
||||
if (ret)
|
||||
return ret;
|
||||
else if (!(val & HDCP_KEY_LOAD_STATUS))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user