Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1064681ybl; Wed, 14 Aug 2019 10:08:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlddeZzdgfkLxkwmUisXvhGQvgwvOkYMHlRPIiYEPc7bTGP41pS9cabA1b8YFYtOvquCd3 X-Received: by 2002:a63:590f:: with SMTP id n15mr205776pgb.190.1565802505729; Wed, 14 Aug 2019 10:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802505; cv=none; d=google.com; s=arc-20160816; b=nWLl+BDQPPAoGOWSTQoNgS0qU2KjtH7rnqeSunNHIAdZlHK0Z//5TRB5JZrLgAviV0 7E+hRGwueD71Ydgnbne6upCRUbZvzHrdnbdE2L+TgxnuO7WBVVf0AbiCjxXIzo+jHNyZ thhN9wPxQw/qS5dN65r9eNsgwqlE3VykYXzhn7Si6E5dyCmsfCt5o8Xvj9j49rTkThnY wjuYzo+gPaeSpZZss9rcSYABSHA9MDZh87SjME6pVbLuapjPsXU3nAYFb8GRrVwViBDw EiUlXqPvVN4zM+L0EN62NItxrPSCGuQfJIU0vgs+IwfWjIzbxW/mJanB8JrdvltvLKKM 02wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YM2BiHlUXkE0igzIu37jkZMU69ZaRXAxTjwA98VJy5Y=; b=asY9oaDts4lVk7HscftuATGN3H4CCoY29ixDlZicOAuf0H8jy3SjuRJ0K1Kyiu23hJ +x4k7CZp57ApUNI4NN9XiChVRqd/wKW/35e7pIqhd81G796HNJK/JWRy6eKqn6PHhDa0 LN2yBu094N6xCTFVqIVKccSXNWshYJ9jZau6Zi1iRlJknOnWWTibUdV3luHO4MKJhQku oZZBpjAa4rBbgGgSoAFLfNHUD1c+JyST4+wmHwR+wQ4jyYUHlS271xGvsF7X7c/LjjKl oZBAM/gAq48kkuqhxcwwg5z2ggLJ5dsCwtZOG9TUJQwh4/eVafpCU7ka9j8Ivxdf1rdc LFtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F2dvUVKn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si160345pgg.490.2019.08.14.10.08.10; Wed, 14 Aug 2019 10:08:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F2dvUVKn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729539AbfHNRFy (ORCPT + 99 others); Wed, 14 Aug 2019 13:05:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:54834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729527AbfHNRFv (ORCPT ); Wed, 14 Aug 2019 13:05:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4193D21721; Wed, 14 Aug 2019 17:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802350; bh=8kiy6x9kOZIqvbwQZ1qz134zUL+JWlXhCP6Bpj+x82Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F2dvUVKnblmx60lDgD+yqxh9R+OPQFNSW5rOJg6s3i0RIKPfU2aFu9/JwIa8QKeK6 cxESfvE//hTLFMDax8sZgFoY6s6widu+O0CPBK62oTaCd7B25CLwduZsFC9kOkNjqt 9C9lmLz37jfoef8yOaJynukdfMtz7C32QSF8BUUo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Harmanprit Tatla , Aric Cyr , Anthony Koo , Leo Li , Alex Deucher , Sasha Levin Subject: [PATCH 5.2 064/144] drm/amd/display: No audio endpoint for Dell MST display Date: Wed, 14 Aug 2019 19:00:20 +0200 Message-Id: <20190814165802.514981594@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 5b25e5f1a97284020abee7348427f89abdb674e8 ] [Why] There are certain MST displays (i.e. Dell P2715Q) that although have the MST feature set to off may still report it is a branch device and a non-zero value for downstream port present. This can lead to us incorrectly classifying a dp dongle connection as being active and disabling the audio endpoint for the display. [How] Modified the placement and condition used to assign the is_branch_dev bit. Signed-off-by: Harmanprit Tatla Reviewed-by: Aric Cyr Acked-by: Anthony Koo Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 253311864cdd5..966aa3b754c5b 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -2218,11 +2218,18 @@ static void get_active_converter_info( link->dpcd_caps.dongle_type = DISPLAY_DONGLE_NONE; ddc_service_set_dongle_type(link->ddc, link->dpcd_caps.dongle_type); + link->dpcd_caps.is_branch_dev = false; return; } /* DPCD 0x5 bit 0 = 1, it indicate it's branch device */ - link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT; + if (ds_port.fields.PORT_TYPE == DOWNSTREAM_DP) { + link->dpcd_caps.is_branch_dev = false; + } + + else { + link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT; + } switch (ds_port.fields.PORT_TYPE) { case DOWNSTREAM_VGA: -- 2.20.1