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:
0f63cca
)
drm/atomic: Make mode_fixup() optional for check_modeset()
author
Ander Conselvan de Oliveira
<
[email protected]
>
Tue, 21 Apr 2015 14:13:18 +0000
(17:13 +0300)
committer
Daniel Vetter
<
[email protected]
>
Fri, 8 May 2015 11:04:08 +0000
(13:04 +0200)
So the i915 driver can use the same logic for setting mode and active
changed flags, without having to implement encoder helpers and the
mode_fixup() callback.
Cc:
[email protected]
Signed-off-by: Ander Conselvan de Oliveira <
[email protected]
>
Reviewed-by: Maarten Lankhorst <
[email protected]
>
Acked-by: Dave Airlie <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/drm_atomic_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_atomic_helper.c
b/drivers/gpu/drm/drm_atomic_helper.c
index 5d30592c83cd7e7fdfe23e01226a8ca1c9fe6695..5e68c3c7d5cfdf34001781672cb75a68e21950bf 100644
(file)
--- a/
drivers/gpu/drm/drm_atomic_helper.c
+++ b/
drivers/gpu/drm/drm_atomic_helper.c
@@
-280,6
+280,8
@@
mode_fixup(struct drm_atomic_state *state)
*/
encoder = conn_state->best_encoder;
funcs = encoder->helper_private;
+ if (!funcs)
+ continue;
if (encoder->bridge && encoder->bridge->funcs->mode_fixup) {
ret = encoder->bridge->funcs->mode_fixup(
@@
-317,6
+319,9
@@
mode_fixup(struct drm_atomic_state *state)
continue;
funcs = crtc->helper_private;
+ if (!funcs->mode_fixup)
+ continue;
+
ret = funcs->mode_fixup(crtc, &crtc_state->mode,
&crtc_state->adjusted_mode);
if (!ret) {