drm/i915: intel_wait_for_register_fw to uncore
The intel_uncore structure is the owner of register access, so subclass the function to it. While at it, use a local uncore var and switch to the new read/write functions where it makes sense. Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190325214940.23632-8-daniele.ceraolospurio@intel.com
This commit is contained in:

committed by
Chris Wilson

parent
4319382e9b
commit
d2d551c06f
@@ -348,7 +348,7 @@ gmbus_wait_idle(struct drm_i915_private *dev_priv)
|
||||
add_wait_queue(&dev_priv->gmbus_wait_queue, &wait);
|
||||
I915_WRITE_FW(GMBUS4, irq_enable);
|
||||
|
||||
ret = intel_wait_for_register_fw(dev_priv,
|
||||
ret = intel_wait_for_register_fw(&dev_priv->uncore,
|
||||
GMBUS2, GMBUS_ACTIVE, 0,
|
||||
10);
|
||||
|
||||
|
Reference in New Issue
Block a user