Commit 26459343 authored by Damien Lespiau's avatar Damien Lespiau Committed by Jani Nikula

drm/i915: Remove '& 0xffff' from the mask given to WA_REG()

We may be hidding bugs by doing that, so let remove it and have the
actual mask value shine through, for better or worse.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent cf4b0de6
......@@ -724,10 +724,10 @@ static int wa_add(struct drm_i915_private *dev_priv,
}
#define WA_SET_BIT_MASKED(addr, mask) \
WA_REG(addr, (mask) & 0xffff, _MASKED_BIT_ENABLE(mask))
WA_REG(addr, (mask), _MASKED_BIT_ENABLE(mask))
#define WA_CLR_BIT_MASKED(addr, mask) \
WA_REG(addr, (mask) & 0xffff, _MASKED_BIT_DISABLE(mask))
WA_REG(addr, (mask), _MASKED_BIT_DISABLE(mask))
#define WA_SET_FIELD_MASKED(addr, mask, value) \
WA_REG(addr, mask, _MASKED_FIELD(mask, value))
......
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