Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4821128ybl; Wed, 22 Jan 2020 05:23:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxjHxlHj9+A6lNW6GvzZtr/b8AU750vqIVW9tXq9DcRswepGeLO7C+dsB8+nlzBbD+s0rPe X-Received: by 2002:a54:4106:: with SMTP id l6mr6644630oic.76.1579699407573; Wed, 22 Jan 2020 05:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699407; cv=none; d=google.com; s=arc-20160816; b=yJXtRHCf8XGYQmSByiWY/1IGe+XQFnXg4Ezc8OWVe2e8z8m/7ET5t2NaVasp/H7c3X TQ38dDPPmrIUNa1KqKi44aFNfu1Tdo2k/uWkS7ojFHo9pAdTTN1kl24Ic8Bt/AyOfL+3 gnWC2fHp0QqWQbuorZIGU22N+xIMFbp43xMd49R6sTuM+mql1+8vh453ArbmPoNXKudo eFa8FFfEnkyABSDQSy6jyTu2qKNdnW4unUeDjNb1Y/V/x88N4AHdt6EvmynmTXGhS5cK R0c4maUMNrz7NEFXH/aIBkiaGG7N7F2iQwYBXH9fd6u0Hhh4b2oGZUXKeL96djiwtCB5 eTow== 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=g8n7aPsdY7/V4i6w+Q+ue9TDkWoQVueJ5JbRz3t8H2w=; b=ZA4kTwcMKdSZvUTuvSrOXj2hRoiOIk7oZD63y+OwMZJPLj4SaVfRDjYC7HfieWyo// tRFVjb2YDDMPouKN2EYY6hmWtQQ6LbCFGGoXoQfkdJy82oijuFhSsMp+xdz2Ki8fJZrB dSQru76xvjqjF36bvTaQahYTmSAcblB7/aZb8PZOXvxKZVLwm1gTI/wEPz151tqk5nzL 18yn679cwpdY0mDFNvvSsfMITwZBQ3nR9uIIEF4mRcIUKjVeBPkX7LXeyt9/qpaM1w7Y WPD8Xt4qMUxd44wN0KiGO2EgcLUdunStlL+4eIgxoUrsz0hUhI8V68WwDGuebt28kc4H nx7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dwdJua+t; 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 m24si19940151oic.11.2020.01.22.05.23.15; Wed, 22 Jan 2020 05:23:27 -0800 (PST) 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=dwdJua+t; 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 S1730387AbgAVNV6 (ORCPT + 99 others); Wed, 22 Jan 2020 08:21:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:39290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729440AbgAVNV5 (ORCPT ); Wed, 22 Jan 2020 08:21:57 -0500 Received: from localhost (unknown [84.241.205.26]) (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 2A2A0205F4; Wed, 22 Jan 2020 13:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699316; bh=/eE6De9bd/obPBfI1sCrVlL2CEwXPM8wDtngzyOWKgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dwdJua+tS1HaR8T9Cz3r7+dmtvs4amvmmbjkGeewVeAAgiX/MRBOuMvM6lg7YfHRr LU9qON7yWkUVzJOQ3rVCLZ2uC1pncLsVwIXj5OIsrxKaIdyX3YzW4tfoamH1rOSDV2 XV9y8Y+kD8E7hzPb75C2GIpYOzeCkFDMo+wCv4uc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Harry Wentland , Mario Kleiner , Martin Leung , Alex Deucher , Sasha Levin Subject: [PATCH 5.4 106/222] drm/amd/display: Reorder detect_edp_sink_caps before link settings read. Date: Wed, 22 Jan 2020 10:28:12 +0100 Message-Id: <20200122092841.327644984@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@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 From: Mario Kleiner [ Upstream commit 3b7c59754cc22760760a84ebddb8e0b1e8dd871b ] read_current_link_settings_on_detect() on eDP 1.4+ may use the edp_supported_link_rates table which is set up by detect_edp_sink_caps(), so that function needs to be called first. Reviewed-by: Harry Wentland Signed-off-by: Mario Kleiner Cc: Martin Leung Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 793aa8e8ec9a..c0f1c62c59b4 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -809,8 +809,8 @@ bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason) } case SIGNAL_TYPE_EDP: { - read_edp_current_link_settings_on_detect(link); detect_edp_sink_caps(link); + read_edp_current_link_settings_on_detect(link); sink_caps.transaction_type = DDC_TRANSACTION_TYPE_I2C_OVER_AUX; sink_caps.signal = SIGNAL_TYPE_EDP; -- 2.20.1