dm_logger_write(dc_ctx->logger, LOG_HW_HOTPLUG, \
__VA_ARGS__)
-#define DEFAULT_DELAY_DISCONNECT 100
/*******************************************************************************
* Private structures
******************************************************************************/
* true on success, false otherwise
*/
static bool program_hpd_filter(
- const struct dc_link *link, int default_disconnect_delay)
+ const struct dc_link *link)
{
bool result = false;
case SIGNAL_TYPE_HDMI_TYPE_A:
/* Program hpd filter */
delay_on_connect_in_ms = 500;
- delay_on_disconnect_in_ms = default_disconnect_delay;
+ delay_on_disconnect_in_ms = 100;
break;
case SIGNAL_TYPE_DISPLAY_PORT:
case SIGNAL_TYPE_DISPLAY_PORT_MST:
dp_hbr_verify_link_cap(link, &link->reported_link_cap);
}
- /* Add delay for certain monitors */
- if (sink->edid_caps.panel_patch.disconnect_delay > 0
- && sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A)
- program_hpd_filter(link, sink->edid_caps.panel_patch.disconnect_delay);
- else
- program_hpd_filter(link, DEFAULT_DELAY_DISCONNECT);
-
/* HDMI-DVI Dongle */
if (sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A &&
!sink->edid_caps.edid_hdmi)
* If GPIO isn't programmed correctly HPD might not rise or drain
* fast enough, leading to bounces.
*/
- program_hpd_filter(link, DEFAULT_DELAY_DISCONNECT);
+ program_hpd_filter(link);
return true;
device_tag_fail:
void core_link_resume(struct dc_link *link)
{
if (link->connector_signal != SIGNAL_TYPE_VIRTUAL)
- program_hpd_filter(link, DEFAULT_DELAY_DISCONNECT);
+ program_hpd_filter(link);
}
static struct fixed31_32 get_pbn_per_slot(struct dc_stream_state *stream)