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:
3dc5fa9
)
drm: exynos: fix for loosing display mode header during mode adjustment
author
Rahul Sharma
<
[email protected]
>
Tue, 20 Nov 2012 11:28:26 +0000
(16:58 +0530)
committer
Inki Dae
<
[email protected]
>
Wed, 5 Dec 2012 05:39:21 +0000
(14:39 +0900)
This patch is to preserve the display mode header during the mode adjustment.
Display mode header is overwritten with the adjusted mode header which is
throwing the stack dump.
Signed-off-by: Rahul Sharma <
[email protected]
>
Signed-off-by: Inki Dae <
[email protected]
>
Signed-off-by: Kyungmin Park <
[email protected]
>
drivers/gpu/drm/exynos/exynos_hdmi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_hdmi.c
b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 6716ecd3b3e983dfe5327d7ea1dff4b09ffa8ea8..a4052271a1f63b1bbb14199d2e4f9ad0706df346 100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/
drivers/gpu/drm/exynos/exynos_hdmi.c
@@
-1979,9
+1979,18
@@
static void hdmi_mode_fixup(void *ctx, struct drm_connector *connector,
index = hdmi_v14_conf_index(m);
if (index >= 0) {
+ struct drm_mode_object base;
+ struct list_head head;
+
DRM_INFO("desired mode doesn't exist so\n");
DRM_INFO("use the most suitable mode among modes.\n");
+
+ /* preserve display mode header while copying. */
+ head = adjusted_mode->head;
+ base = adjusted_mode->base;
memcpy(adjusted_mode, m, sizeof(*m));
+ adjusted_mode->head = head;
+ adjusted_mode->base = base;
break;
}
}