Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1056834pxk; Mon, 31 Aug 2020 08:39:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOvBsuRvcZfCV+Z76Lex2T5xU2Z8/oTGH/T+o4+lieqaWr6e71l5iYs08jQXOHxKge2qXN X-Received: by 2002:a17:906:5246:: with SMTP id y6mr1626477ejm.316.1598888348228; Mon, 31 Aug 2020 08:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598888348; cv=none; d=google.com; s=arc-20160816; b=uzK5ijJJasWdaofAWUTRyju2phZkqSXNSJWa7WZA+jjJRzV4q/MLYGAb12aCqWrh/U NMcx1gB9sth51R6+toEpiTIMvaNG6vC0I9jf4z8RbW+GmjC75w5QIimBTk72DaghyofA nsY+0OIiEJVebdLUxKmEv4iPn7fwMz1p4q149H412LNZBDPEHTbWefCerd8+gY9cqH5F 13GGF6JTuwJee0sMDOAjLWJFmNQhA5OdXjZNfpQnAF6ybIFxyimzCkjzMzSozV2WzS2I Nnf9jAa5Us776OcDsbeDONrLC7MQqB5QjgV8PG3XW/pqPboqBZFtD1aes1ese6MXdZOQ W+gQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uUR+8ktSqHVVYsyItcR0GaY+Br4L9vihFP/Aw7aH4Ao=; b=SFbtfPPI2SXJ/rZv+5m6dfoq9ytumVmdpXFlCzJWFQw2l/WtxXShoJZl5VkblT3xmH FdP2Al1IH70eF+4MiNWbclTLdsMnVcHb8+Q06OhA0VXDzEGPqV8flEBvK6Bp6TEDrxr7 WH1LN1IjqdBQPFuPbmg5D/NJwVIgQWrfbm4pQee+tCg7WfHZqzIxVa0Yzpr0H3+FBiBQ W/Yc2l2ixoTRmn75jZ8Z1OZQ4ZPWxv5hpYx1ODCkpQnzUG6XJxv/g2LlUwTq/dtzGZ+/ SR9DOxv1K4tD+tHwC+ViTztLBdUY6g7duzh7lQIvTXPI7TGmpCdOMa7Bx2N5rGjQCH0L 8rNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bctM+zbe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si5610073ejf.336.2020.08.31.08.38.45; Mon, 31 Aug 2020 08:39:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bctM+zbe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729320AbgHaPhF (ORCPT + 99 others); Mon, 31 Aug 2020 11:37:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:40028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728660AbgHaPaa (ORCPT ); Mon, 31 Aug 2020 11:30:30 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7FD32207EA; Mon, 31 Aug 2020 15:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598887830; bh=XeKscrXj7WbziYvkv0A54es1/smVegRQF/4zdzIrzso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bctM+zbeIT2GqpIpva1JM4S8FHi2zoMdSjAYgsaN9AwFijvVS2ZQSBPmejsoQQCgt hXYwkqe98ZBjxpNc3L9rhwaGCPQUbVn9Wz++hNOcwSvW1c9I4VtcPyUXfR3FBXnKPF gzt0JLksnp3cCiyWGx9sEEnNOj6q5MpCW+/nrZDI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Samson Tam , Joshua Aberback , Eryk Brol , Alex Deucher , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.8 37/42] drm/amd/display: Fix passive dongle mistaken as active dongle in EDID emulation Date: Mon, 31 Aug 2020 11:29:29 -0400 Message-Id: <20200831152934.1023912-37-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200831152934.1023912-1-sashal@kernel.org> References: <20200831152934.1023912-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Samson Tam [ Upstream commit efbde23a3b0164cef27fd394e7d548f46af5b51d ] [Why] dongle_type is set during dongle connection but for passive dongles, dongle_type is not set. If user starts with an active dongle and then switches to a passive dongle, it will still report as an active dongle. Trying to emulate the wrong connecter type results in display not lighting up. [How] Set dpcd_caps.dongle_type for passive dongles in detect_dp(). Signed-off-by: Samson Tam Reviewed-by: Joshua Aberback Acked-by: Eryk Brol Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index bdddb46727b1f..885beb0bcc199 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -767,6 +767,7 @@ static bool detect_dp(struct dc_link *link, sink_caps->signal = dp_passive_dongle_detection(link->ddc, sink_caps, audio_support); + link->dpcd_caps.dongle_type = sink_caps->dongle_type; } return true; -- 2.25.1