projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a0d6a
)
drm: meson: mask value when writing bits relaxed
author
Julien Masson
<jmasson@baylibre.com>
Mon, 24 Jun 2019 14:47:56 +0000
(16:47 +0200)
committer
Neil Armstrong
<narmstrong@baylibre.com>
Fri, 9 Aug 2019 09:37:30 +0000
(11:37 +0200)
The value used in the macro writel_bits_relaxed has to be masked since
we don't want change the bits outside the mask.
Signed-off-by: Julien Masson <jmasson@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/86y31r82fo.fsf@baylibre.com
drivers/gpu/drm/meson/meson_registers.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/meson/meson_registers.h
b/drivers/gpu/drm/meson/meson_registers.h
index
057453c
..
f8dd1be
100644
(file)
--- a/
drivers/gpu/drm/meson/meson_registers.h
+++ b/
drivers/gpu/drm/meson/meson_registers.h
@@
-12,7
+12,7
@@
#define _REG(reg) ((reg) << 2)
#define writel_bits_relaxed(mask, val, addr) \
- writel_relaxed((readl_relaxed(addr) & ~(mask)) | (
val
), addr)
+ writel_relaxed((readl_relaxed(addr) & ~(mask)) | (
(val) & (mask)
), addr)
/* vpp2 */
#define VPP2_DUMMY_DATA 0x1900