Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2513150imm; Mon, 24 Sep 2018 05:44:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV62YaklO5hJAGHUgUdUWXjk2ldPFLl/BmmPef0YE0NFarEeOvWtHhCjvvMjsciLWQoRuYyTZ X-Received: by 2002:a63:de4b:: with SMTP id y11-v6mr9386879pgi.435.1537793061501; Mon, 24 Sep 2018 05:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537793061; cv=none; d=google.com; s=arc-20160816; b=fe81ACBFvn4I/Ge+HwdVDo+/nIQxi5bl+tpSmowGSBCgFi79DIGmsXtn0y9nSqKwll sPHQbICAj7No7gFavnWxGrogbC68vWXDwL5iD3rdF1QR9vlk+C4q/3+mTuJyL7c/Xsj5 R0Jl4fHQviWVsuGA9k5VbcM52BumFy6U+4/U7h9RqpDilVfFJt111cUK/bA/ynYxIRNN SzcgMZ8u5rK+RBuFLLwipREL3b0at3EpsoC6JYn58wx4SiSQKE1c4+7PN6B3xfJWB7lQ dlML/E2XG6458UIojRb683BZ+2lCJTHZ+ztr1PuAoOxiaG7zt4F3VkTEZElkC35Ikb4j tcjw== 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; bh=YinW83MZxHYsr1/Id9BaUMYLr5k+OM6X4uA0j+EEdmY=; b=WoxtN4leb11G7bE1exG/CMQYLJjUWxVDvm1kveAa2rvJVYkYv5ziL35OzGjDVsXL/H n1771AZH2vjnBJoW0v/Uow6nDSSaQTcOgbhrwIanf96Fub+wMLj8bOZ/fedMQKTLCRB7 Kr03yk9s1fLoKwIwLAYczCQdWezQSkrBfRvSpMtIXB1olXc/jUsyKXcH9G7kPDo/OmZt tlvsfv3OYcgcRtnFw1b1k7UB4U15E8kkbh+0OR8MDDC/xODlE91++sw3FdIo/24fGIZU 9hsbUxThD0o00FZl0A9uLjCE62YOkUlSb0xwi3NIfDPqHay0exw50kRtyEnbw7g+S0+C Nxcw== ARC-Authentication-Results: i=1; mx.google.com; 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 n12-v6si7966706pgl.136.2018.09.24.05.44.06; Mon, 24 Sep 2018 05:44:21 -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; 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 S2388300AbeIXSpE (ORCPT + 99 others); Mon, 24 Sep 2018 14:45:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59392 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728480AbeIXSpE (ORCPT ); Mon, 24 Sep 2018 14:45:04 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A645E109A; Mon, 24 Sep 2018 12:43:05 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Yang , Charlene Liu , Harry Wentland , Alex Deucher , Sasha Levin Subject: [PATCH 4.18 195/235] drm/amd/display: support access ddc for mst branch Date: Mon, 24 Sep 2018 13:53:01 +0200 Message-Id: <20180924113123.810864196@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Yang [ Upstream commit 0a14544661fad1606cc96aece30b2950fd9c4c81 ] [Why] Megachip dockings accesses ddc line through display driver when installing FW. Previously, we would fail every transaction because link attached to mst branch did not have their ddc transaction type set. [How] Set ddc transaction type when mst branch is connected. Signed-off-by: Eric Yang Reviewed-by: Charlene Liu Acked-by: Harry Wentland Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -497,6 +497,10 @@ static bool detect_dp( sink_caps->signal = SIGNAL_TYPE_DISPLAY_PORT_MST; link->type = dc_connection_mst_branch; + dal_ddc_service_set_transaction_type( + link->ddc, + sink_caps->transaction_type); + /* * This call will initiate MST topology discovery. Which * will detect MST ports and add new DRM connector DRM