]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Add passive dongle support for HPD Rearch
authorJohn Barberiz <jbarberi@amd.com>
Fri, 9 Feb 2018 22:48:18 +0000 (17:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Mar 2018 20:33:02 +0000 (15:33 -0500)
Add HPD delay timer support to
1. Single/dual link DVI.
2. DP to HDMI passive dongle
3. DP to DVI passive dongle.

Signed-off-by: John Barberiz <jbarberi@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h

index f40c9c7aa7335d02dc67510130e9542b81314f45..556b155ba5af22e2acb21d78c559e12745cb4608 100644 (file)
@@ -2358,11 +2358,14 @@ void core_link_set_avmute(struct pipe_ctx *pipe_ctx, bool enable)
        core_dc->hwss.set_avmute(pipe_ctx, enable);
 }
 
-void dc_link_disable_hpd_filter(struct dc_link *link)
+void dc_link_enable_hpd_filter(struct dc_link *link, bool enable)
 {
        struct gpio *hpd;
 
-       if (!link->is_hpd_filter_disabled) {
+       if (enable) {
+               link->is_hpd_filter_disabled = false;
+               program_hpd_filter(link);
+       } else {
                link->is_hpd_filter_disabled = true;
                /* Obtain HPD handle */
                hpd = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service);
index ac0f617b43c96c15862b5350c1046ecf8cdc176d..fb4d9eafdc6e20b96fe66c0bbde8624293b2cf12 100644 (file)
@@ -197,7 +197,7 @@ bool dc_link_dp_set_test_pattern(
        const unsigned char *p_custom_pattern,
        unsigned int cust_pattern_size);
 
-void dc_link_disable_hpd_filter(struct dc_link *link);
+void dc_link_enable_hpd_filter(struct dc_link *link, bool enable);
 
 /*
  * DPCD access interfaces