OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696029e
)
drm: aspeed: Fix GENMASK misuse
author
Ondrej Jirman
<megous@megous.com>
Sat, 22 Feb 2020 23:51:52 +0000
(
00:51
+0100)
committer
Joel Stanley
<joel@jms.id.au>
Fri, 9 Oct 2020 07:46:34 +0000
(18:16 +1030)
Arguments to GENMASK should be msb >= lsb.
Signed-off-by: Ondrej Jirman <megous@megous.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link:
https://patchwork.freedesktop.org/patch/msgid/20200222235152.242816-1-megous@megous.com
drivers/gpu/drm/aspeed/aspeed_gfx.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/aspeed/aspeed_gfx.h
b/drivers/gpu/drm/aspeed/aspeed_gfx.h
index
e7ca958
..
f1e7e56
100644
(file)
--- a/
drivers/gpu/drm/aspeed/aspeed_gfx.h
+++ b/
drivers/gpu/drm/aspeed/aspeed_gfx.h
@@
-75,7
+75,7
@@
int aspeed_gfx_create_output(struct drm_device *drm);
/* CTRL2 */
#define CRT_CTRL_DAC_EN BIT(0)
#define CRT_CTRL_VBLANK_LINE(x) (((x) << 20) & CRT_CTRL_VBLANK_LINE_MASK)
-#define CRT_CTRL_VBLANK_LINE_MASK GENMASK(
20, 31
)
+#define CRT_CTRL_VBLANK_LINE_MASK GENMASK(
31, 20
)
/* CRT_HORIZ0 */
#define CRT_H_TOTAL(x) (x)