projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62bb6b4
)
drm/i915/pps: use intel_de_rmw() for panel unlock
author
Jani Nikula
<jani.nikula@intel.com>
Mon, 17 Apr 2023 08:57:42 +0000
(11:57 +0300)
committer
Jani Nikula
<jani.nikula@intel.com>
Tue, 18 Apr 2023 06:45:39 +0000
(09:45 +0300)
Use rmw where needed.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230417085742.793379-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_pps.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/display/intel_pps.c
b/drivers/gpu/drm/i915/display/intel_pps.c
index
7f99266
..
4f0b0cc
100644
(file)
--- a/
drivers/gpu/drm/i915/display/intel_pps.c
+++ b/
drivers/gpu/drm/i915/display/intel_pps.c
@@
-1653,12
+1653,9
@@
void intel_pps_unlock_regs_wa(struct drm_i915_private *dev_priv)
*/
pps_num = intel_num_pps(dev_priv);
- for (pps_idx = 0; pps_idx < pps_num; pps_idx++) {
- u32 val = intel_de_read(dev_priv, PP_CONTROL(pps_idx));
-
- val = (val & ~PANEL_UNLOCK_MASK) | PANEL_UNLOCK_REGS;
- intel_de_write(dev_priv, PP_CONTROL(pps_idx), val);
- }
+ for (pps_idx = 0; pps_idx < pps_num; pps_idx++)
+ intel_de_rmw(dev_priv, PP_CONTROL(pps_idx),
+ PANEL_UNLOCK_MASK, PANEL_UNLOCK_REGS);
}
void intel_pps_setup(struct drm_i915_private *i915)