projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e9cfeb
)
drm: Clear crtc->primary->crtc when disabling the crtc via setcrtc()
author
Ville Syrjälä
<
[email protected]
>
Thu, 22 Mar 2018 15:22:53 +0000
(17:22 +0200)
committer
Ville Syrjälä
<
[email protected]
>
Thu, 29 Mar 2018 16:14:20 +0000
(19:14 +0300)
Keep the primary->crtc in sync with the state->crtc (also with
primary->fb and state->fb) when disabling the crtc (and thus also
the primary) via setcrtc().
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Daniel Vetter <
[email protected]
>
Reviewed-by: Maarten Lankhorst <
[email protected]
>
drivers/gpu/drm/drm_crtc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_crtc.c
b/drivers/gpu/drm/drm_crtc.c
index 03583887cfec323628ee9723ee1be8b275bc37ef..7a973ada7195f47ee4ec7e2312171fd45d7feb46 100644
(file)
--- a/
drivers/gpu/drm/drm_crtc.c
+++ b/
drivers/gpu/drm/drm_crtc.c
@@
-471,7
+471,7
@@
static int __drm_mode_set_config_internal(struct drm_mode_set *set,
ret = crtc->funcs->set_config(set, ctx);
if (ret == 0) {
- crtc->primary->crtc =
crtc
;
+ crtc->primary->crtc =
fb ? crtc : NULL
;
crtc->primary->fb = fb;
}