OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59b026
)
drm/ast: Read encoder possible-CRTC mask from drm_crtc_mask()
author
Thomas Zimmermann
<tzimmermann@suse.de>
Mon, 7 Feb 2022 14:15:42 +0000
(15:15 +0100)
committer
Thomas Zimmermann
<tzimmermann@suse.de>
Tue, 8 Feb 2022 12:40:03 +0000
(13:40 +0100)
Read the encoder's possible-CRTC mask from the involved CRTC instead
of hard-coding it.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20220207141544.30015-8-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ast/ast_mode.c
b/drivers/gpu/drm/ast/ast_mode.c
index
bd01aea
..
09995a3
100644
(file)
--- a/
drivers/gpu/drm/ast/ast_mode.c
+++ b/
drivers/gpu/drm/ast/ast_mode.c
@@
-1341,7
+1341,7
@@
static int ast_vga_output_init(struct ast_private *ast)
ret = drm_simple_encoder_init(dev, encoder, DRM_MODE_ENCODER_DAC);
if (ret)
return ret;
- encoder->possible_crtcs =
1
;
+ encoder->possible_crtcs =
drm_crtc_mask(crtc)
;
ret = ast_vga_connector_init(dev, ast_vga_connector);
if (ret)