mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 05:12:01 +02:00
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>
This commit is contained in:
parent
a746c77e5e
commit
83a3766b14
|
|
@ -862,7 +862,8 @@ static bool dc_link_detect_helper(struct dc_link *link,
|
|||
(!link->dc->config.allow_edp_hotplug_detection)) &&
|
||||
link->local_sink) {
|
||||
// need to re-write OUI and brightness in resume case
|
||||
if (link->connector_signal == SIGNAL_TYPE_EDP) {
|
||||
if (link->connector_signal == SIGNAL_TYPE_EDP &&
|
||||
(link->dpcd_sink_ext_caps.bits.oled == 1)) {
|
||||
dpcd_set_source_specific_data(link);
|
||||
msleep(post_oui_delay);
|
||||
dc_link_set_default_brightness_aux(link);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user