drm/amd/display: Not to call dpcd_set_source_specific_data during resume.
authorRajib Mahapatra <rajib.mahapatra@amd.com>
Mon, 10 Jan 2022 07:45:19 +0000 (13:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jan 2022 23:00:32 +0000 (18:00 -0500)
commit83a3766b147053e542f3c91c121cb9594239e644
tree7088777b3a385720b047bbbe57412fe48e6436a4
parenta746c77e5ee86829c03dfaf718e18b589f849be3
drm/amd/display: Not to call dpcd_set_source_specific_data during resume.

[Why]
During resume path, dpcd_set_source_specific_data is taking
extra time when core_link_write_dpcd fails on DP_SOURCE_OUI+0x03
and DP_SOURCE_MINIMUM_HBLANK_SUPPORTED. Here,aux->transfer fails
with multiple retries and consume significant amount time during
S0i3 resume.

[How]
Not to call dpcd_set_source_specific_data during resume path
when there is no oled panel connected and achieve faster resume
during S0i3.

Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Signed-off-by: Rajib Mahapatra <rajib.mahapatra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c