提交 26459343 编写于 作者: D Damien Lespiau 提交者: 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: NDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册