aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_dp_helper.c1
-rw-r--r--drivers/gpu/drm/omapdrm/dss/sdi.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c
index ffe14ec3e7f2..70ae1f232331 100644
--- a/drivers/gpu/drm/drm_dp_helper.c
+++ b/drivers/gpu/drm/drm_dp_helper.c
@@ -1145,6 +1145,7 @@ int drm_dp_psr_setup_time(const u8 psr_cap[EDP_PSR_RECEIVER_CAP_SIZE])
1145 static const u16 psr_setup_time_us[] = { 1145 static const u16 psr_setup_time_us[] = {
1146 PSR_SETUP_TIME(330), 1146 PSR_SETUP_TIME(330),
1147 PSR_SETUP_TIME(275), 1147 PSR_SETUP_TIME(275),
1148 PSR_SETUP_TIME(220),
1148 PSR_SETUP_TIME(165), 1149 PSR_SETUP_TIME(165),
1149 PSR_SETUP_TIME(110), 1150 PSR_SETUP_TIME(110),
1150 PSR_SETUP_TIME(55), 1151 PSR_SETUP_TIME(55),
diff --git a/drivers/gpu/drm/omapdrm/dss/sdi.c b/drivers/gpu/drm/omapdrm/dss/sdi.c
index 68a40ae26f5b..1e2c931f6acf 100644
--- a/drivers/gpu/drm/omapdrm/dss/sdi.c
+++ b/drivers/gpu/drm/omapdrm/dss/sdi.c
@@ -82,7 +82,7 @@ static int sdi_calc_clock_div(struct sdi_device *sdi, unsigned long pclk,
82 struct dispc_clock_info *dispc_cinfo) 82 struct dispc_clock_info *dispc_cinfo)
83{ 83{
84 int i; 84 int i;
85 struct sdi_clk_calc_ctx ctx = { .sdi = sdi }; 85 struct sdi_clk_calc_ctx ctx;
86 86
87 /* 87 /*
88 * DSS fclk gives us very few possibilities, so finding a good pixel 88 * DSS fclk gives us very few possibilities, so finding a good pixel
@@ -95,6 +95,9 @@ static int sdi_calc_clock_div(struct sdi_device *sdi, unsigned long pclk,
95 bool ok; 95 bool ok;
96 96
97 memset(&ctx, 0, sizeof(ctx)); 97 memset(&ctx, 0, sizeof(ctx));
98
99 ctx.sdi = sdi;
100
98 if (pclk > 1000 * i * i * i) 101 if (pclk > 1000 * i * i * i)
99 ctx.pck_min = max(pclk - 1000 * i * i * i, 0lu); 102 ctx.pck_min = max(pclk - 1000 * i * i * i, 0lu);
100 else 103 else