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: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Damien Lespiau 2014-12-08 17:35:38 +00:00 committed by Jani Nikula
parent cf4b0de6a3
commit 26459343e0

View File

@ -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))