drm/i915/de: return the old register value from intel_de_rmw()
A similar thing was added in intel_uncore_rmw(). Make it available for display too. Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/b82cb29e8ece63e68499307f9e3e83139e590d23.1670433372.git.jani.nikula@intel.com
This commit is contained in:
parent
93b3c44d6f
commit
4fa9fc424a
@ -34,10 +34,10 @@ intel_de_write(struct drm_i915_private *i915, i915_reg_t reg, u32 val)
|
||||
intel_uncore_write(&i915->uncore, reg, val);
|
||||
}
|
||||
|
||||
static inline void
|
||||
static inline u32
|
||||
intel_de_rmw(struct drm_i915_private *i915, i915_reg_t reg, u32 clear, u32 set)
|
||||
{
|
||||
intel_uncore_rmw(&i915->uncore, reg, clear, set);
|
||||
return intel_uncore_rmw(&i915->uncore, reg, clear, set);
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
Loading…
x
Reference in New Issue
Block a user