Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon/dp: sleep after powering up the display

According to the DP 1.1 spec, the sink must power
up within 1ms. Noticed while reviewing Thierry's
drm/dp patches.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+3 -1
+3 -1
drivers/gpu/drm/radeon/atombios_dp.c
··· 673 673 u8 tmp; 674 674 675 675 /* power up the sink */ 676 - if (dp_info->dpcd[0] >= 0x11) 676 + if (dp_info->dpcd[0] >= 0x11) { 677 677 radeon_write_dpcd_reg(dp_info->radeon_connector, 678 678 DP_SET_POWER, DP_SET_POWER_D0); 679 + usleep_range(1000, 2000); 680 + } 679 681 680 682 /* possibly enable downspread on the sink */ 681 683 if (dp_info->dpcd[3] & 0x1)