Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3199406pxb; Mon, 9 Nov 2020 05:25:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3RE4omtQLOjPK1ocNamGoBXzR6XTjYMlz0J6b/ELdLimg2l2FykYgZJFtl81QmFOU9XDt X-Received: by 2002:a17:907:9d0:: with SMTP id bx16mr15265393ejc.426.1604928339943; Mon, 09 Nov 2020 05:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604928339; cv=none; d=google.com; s=arc-20160816; b=EbcH+eZyntDQOvudVQbVPDpFqJUUfEpdOlWohyGjkh+xrr4PPMUnMTYiG1VAleBxbp 97jEXy8nU05vXl5bf/PzrpST0bCb1Riin/Oaf1fBndAVe9i6OAc1NngB1vV/i7ouTzQC OWBQrvW4x9XymX1wED0gLq2oLEuGNXylP3GjCgEA8kcY96LTqI9VdNgMFnlkYWNBUra8 56r9A4tqao/F6Rs7pkuiWwAmBtS9YG2+O2LM+iJ83iXa1n3UeI33nN9P3BEULbuQnh9m sC2OndFhDGnA/MVyzG9nwkklQSsnvTTQkFq/gICY+QUtfbi0EudufJ5zYDjsZEnADEdN rbBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Qpb3dEU02jSEnlFZPrWXrU8Cv091xnd2bW15zMJ3ncQ=; b=dq9v5lThLXlgtu6tkmBVLiKcArNSP+QmmKfy4IqKvvvPSMIOjiLpj7b5yHRMzqMx0E RrrJ4tl2H19HcLmaCt5o3yN17MDWwqHnGTX4S5aHAyOJNsNUmsgzi85O1snmUcmb/8QQ IRVTBn0/W5Qy4SiCrbmZ0R1IkBJhBpOAacqBuE+QNw0XCeVXoJ9cwJZFYq9vnJEOktZi qy/mcTOxkSk0TLpb0X0bVLC8CIOYPED+AFtqiqWY5eCiw9f5TahtnpyPCc3bnRJB1U58 YigM48mWrsP+/Ew2kj3KS2DwEQs6LPntajSyj/qBZtFcwGgmcH1yTjgebdHUcF9Ej9XL f7Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sUNgKQNi; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si6837107ejx.103.2020.11.09.05.25.16; Mon, 09 Nov 2020 05:25:39 -0800 (PST) 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=sUNgKQNi; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388138AbgKINWE (ORCPT + 99 others); Mon, 9 Nov 2020 08:22:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:50006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387839AbgKINWC (ORCPT ); Mon, 9 Nov 2020 08:22:02 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 F31E120663; Mon, 9 Nov 2020 13:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604928121; bh=IAyK6rwbXaedPokaEbAQ1fGa2dVLGXqgJwZU377OoBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sUNgKQNie+h5L5BOhIUlC2b/2zh60Vwrnl6Xhlu1q9nL33g7XZl2uuUjLLLmhGlvC HJgLM47s03kjW0bL1KgMDT1FWF0xUStB6eQesdgHzr81VH3mT+/EThojoZlhOyjPhT S0I2jNimNQBz1jjcaaxOsnP+E+ytmO6j4bOfvSqQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Leung , Aurabindo Pillai , Alex Deucher , Sasha Levin Subject: [PATCH 5.9 094/133] drm/amd/display: adding ddc_gpio_vga_reg_list to ddc reg defns Date: Mon, 9 Nov 2020 13:55:56 +0100 Message-Id: <20201109125035.225118762@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125030.706496283@linuxfoundation.org> References: <20201109125030.706496283@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Leung [ Upstream commit a1d2afc5dde29a943d32bf92eb0408c9f19541fc ] why: oem-related ddc read/write fails without these regs how: copy from hw_factory_dcn20.c Signed-off-by: Martin Leung Acked-by: Aurabindo Pillai Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/display/dc/gpio/dcn30/hw_factory_dcn30.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/gpio/dcn30/hw_factory_dcn30.c b/drivers/gpu/drm/amd/display/dc/gpio/dcn30/hw_factory_dcn30.c index 7e7fb65721073..9d3665f88c523 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/dcn30/hw_factory_dcn30.c +++ b/drivers/gpu/drm/amd/display/dc/gpio/dcn30/hw_factory_dcn30.c @@ -117,6 +117,12 @@ static const struct ddc_registers ddc_data_regs_dcn[] = { ddc_data_regs_dcn2(4), ddc_data_regs_dcn2(5), ddc_data_regs_dcn2(6), + { + DDC_GPIO_VGA_REG_LIST(DATA), + .ddc_setup = 0, + .phy_aux_cntl = 0, + .dc_gpio_aux_ctrl_5 = 0 + } }; static const struct ddc_registers ddc_clk_regs_dcn[] = { @@ -126,6 +132,12 @@ static const struct ddc_registers ddc_clk_regs_dcn[] = { ddc_clk_regs_dcn2(4), ddc_clk_regs_dcn2(5), ddc_clk_regs_dcn2(6), + { + DDC_GPIO_VGA_REG_LIST(CLK), + .ddc_setup = 0, + .phy_aux_cntl = 0, + .dc_gpio_aux_ctrl_5 = 0 + } }; static const struct ddc_sh_mask ddc_shift[] = { -- 2.27.0