Skip to content

Commit 20e635f

Browse files
author
Lada Trimasova
committed
Patches for PGU support
This patch series for linux-4.4 add PGU support for arc: 0001-drm-fixes-when-i2c-encoder-slave-mode_fixup-is-null.patch 0002-drm-fixes-crct-set_mode-when-encoder-mode_fixup-is-n.patch 0003-drm-fixes-crct-set_mode-when-crtc-mode_fixup-is-null.patch 0004-arc-convert-to-dma_map_ops.patch 0005-arc-Add-our-own-implementation-of-fb_pgprotect.patch 0006-drm-Add-support-of-ARC-PGU-display-controller.patch 0007-drm-arcpgu-fix-differences-with-4.4-base.patch 0008-arc-axs10x-add-support-of-ARC-PGU.patch 0009-arc-axs10x-really-enable-ARC-PGU-in-defconfigs.patch Signed-off-by: Lada Trimasova <[email protected]>
1 parent aaf6c28 commit 20e635f

9 files changed

+2810
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From c2fe3de556a40fb59fb157fc0ece18903030cfd6 Mon Sep 17 00:00:00 2001
2+
From: Carlos Palminha <[email protected]>
3+
Date: Wed, 10 Feb 2016 12:08:38 +0000
4+
Subject: [PATCH 1/9] drm: fixes when i2c encoder slave mode_fixup is null.
5+
6+
Avoid i2c slave encoder drivers to copy/paste code to implement functions that will
7+
only return true.
8+
9+
Signed-off-by: Carlos Palminha <[email protected]>
10+
[danvet: whitespace requested by Jani.]
11+
Signed-off-by: Daniel Vetter <[email protected]>
12+
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
13+
---
14+
drivers/gpu/drm/drm_encoder_slave.c | 3 +++
15+
1 file changed, 3 insertions(+)
16+
17+
diff --git a/drivers/gpu/drm/drm_encoder_slave.c b/drivers/gpu/drm/drm_encoder_slave.c
18+
index d18b88b..d33a769 100644
19+
--- a/drivers/gpu/drm/drm_encoder_slave.c
20+
+++ b/drivers/gpu/drm/drm_encoder_slave.c
21+
@@ -140,6 +140,9 @@ bool drm_i2c_encoder_mode_fixup(struct drm_encoder *encoder,
22+
const struct drm_display_mode *mode,
23+
struct drm_display_mode *adjusted_mode)
24+
{
25+
+ if (!get_slave_funcs(encoder)->mode_fixup)
26+
+ return true;
27+
+
28+
return get_slave_funcs(encoder)->mode_fixup(encoder, mode, adjusted_mode);
29+
}
30+
EXPORT_SYMBOL(drm_i2c_encoder_mode_fixup);
31+
--
32+
2.5.5
33+

0 commit comments

Comments
 (0)