Skip to content

Commit ebb442b

Browse files
committed
Merge tag 'drm-misc-fixes-2018-05-29' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
core: Add 220us psr setup time (Dhinakaran) omap: Fix NULL deref (Tomi) Cc: Dhinakaran Pandiyan <[email protected]> Cc: Tomi Valkeinen <[email protected]> * tag 'drm-misc-fixes-2018-05-29' of git://anongit.freedesktop.org/drm/drm-misc: drm/omap: fix NULL deref crash with SDI displays drm/psr: Fix missed entry in PSR setup time table.
2 parents 801dff4 + 2bc5ff0 commit ebb442b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/gpu/drm/drm_dp_helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ int drm_dp_psr_setup_time(const u8 psr_cap[EDP_PSR_RECEIVER_CAP_SIZE])
11451145
static const u16 psr_setup_time_us[] = {
11461146
PSR_SETUP_TIME(330),
11471147
PSR_SETUP_TIME(275),
1148+
PSR_SETUP_TIME(220),
11481149
PSR_SETUP_TIME(165),
11491150
PSR_SETUP_TIME(110),
11501151
PSR_SETUP_TIME(55),

drivers/gpu/drm/omapdrm/dss/sdi.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static int sdi_calc_clock_div(struct sdi_device *sdi, unsigned long pclk,
8282
struct dispc_clock_info *dispc_cinfo)
8383
{
8484
int i;
85-
struct sdi_clk_calc_ctx ctx = { .sdi = sdi };
85+
struct sdi_clk_calc_ctx ctx;
8686

8787
/*
8888
* 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,
9595
bool ok;
9696

9797
memset(&ctx, 0, sizeof(ctx));
98+
99+
ctx.sdi = sdi;
100+
98101
if (pclk > 1000 * i * i * i)
99102
ctx.pck_min = max(pclk - 1000 * i * i * i, 0lu);
100103
else

0 commit comments

Comments
 (0)