Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2271782iof; Wed, 8 Jun 2022 01:03:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxONqnov0yg0H6G6Dc1YTWhAURt2t/LIs+ev8f5OaDBrCwdmlh8eUVXzQ8pkyWT4b0hOMPJ X-Received: by 2002:aa7:9047:0:b0:519:36a2:9f63 with SMTP id n7-20020aa79047000000b0051936a29f63mr33496927pfo.60.1654675415286; Wed, 08 Jun 2022 01:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654675415; cv=none; d=google.com; s=arc-20160816; b=DH2x2A2eHcGrPQKjyb4KceY1tJAO4gKWcsseqbfUIG9ojbX1GbuMqy6yjcWeg8Kl3f KpQxskfNF4PChpj/MnCMne/bLAQgvR4VWvQDo8nAp+r5yF7Ky8hpLu42bW9d5gSWvQ+G XrEwUpQ+8+mLZVBSyv/chAPvrrSCe/EQCRReIHAivC7MzExtypqax9/2fsnz3Fq4ijmG AdxVyIn3kZGNJy/fbIrRqsMStTvqRvOBNEeysQkCOMUwVuLy9yfnkUdcOumPiS+UG6j4 +QZIYhGopXaLbcUsojr0kZJIN+68769j4x/daNccWg8BbI+AtXsu5xjicElC0u1efMPW XeSw== 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=7qRfVF+ZmQAly4+qyH11Te89obt65cjOyLH3ZrWC2yI=; b=jAjgtfZcqcrcicUjWflUxqqCGJzbj8iN5xHpAqSLkgwwa6ord8ql1MoFqsjmpcP5Fk 8N8SMWLOn8pxPTwgHWKydxTz/puN/K9dsE5VggSkclGNoQJIJuF0BXti6Dwmoc0HsEmq OEUGRJrncn1+wn5nQdetW5/TFiliMILyLOQWgShJhG2C+A0x4AtB0HvSERuynzKaraeE tc5AKwgMJQZIImI3xVCMOSO/HAAQSwIiTXsPFImuMoC/casa24lyeawFEqnmWb10J5Fi UMtpeZBxFgh6A/mmRfpuS2aY4a34qDzgA1PjskOFcyeCSVbUCgUB2ofF1iXSn6mCsxqe r6OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FoQV51+g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q12-20020a170902f78c00b001678b6bde1asi7415836pln.330.2022.06.08.01.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:03:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FoQV51+g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C43FC2044D4; Wed, 8 Jun 2022 00:32:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383108AbiFGWoZ (ORCPT + 99 others); Tue, 7 Jun 2022 18:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381011AbiFGVbc (ORCPT ); Tue, 7 Jun 2022 17:31:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95AAB22C49F; Tue, 7 Jun 2022 12:03:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4ACBD617F7; Tue, 7 Jun 2022 19:03:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D0D2C385A5; Tue, 7 Jun 2022 19:03:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628628; bh=Kacrr2MuoitFijxvKKIMt/koonpQyVamPq3KJQ9FeW8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FoQV51+gJa87mUwINY2UfCpI4P56iEegz0CNXDeQcXGs5GDd/4cpNG30ZO1IRDaKU igAu5LCuVov3gbWm+wvtjiSiJfjtzBKJqEgJR20380mS6wUgdezVYXYn6DePkPF4PB rVNfUlYYCGLKIQBvAfEKwTo7e5RFlxrhLOzt76V0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuogee Hsieh , Stephen Boyd , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 5.18 371/879] drm/msm/dp: reset DP controller before transmit phy test pattern Date: Tue, 7 Jun 2022 18:58:09 +0200 Message-Id: <20220607165013.641051369@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kuogee Hsieh [ Upstream commit 581d69981159b00f0443d171a4b900089f34ccfe ] DP controller state can not switch from video ready state to transmit phy pattern state at run time. DP mainlink has to be teared down followed by reset controller to default state to have DP controller switch to transmit phy test pattern state and start generate specified phy test pattern to sinker once main link setup again. Changes in v2: -- correct Fixes's commit id Fixes: 52352fe2f866 ("drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run") Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Patchwork: https://patchwork.freedesktop.org/patch/483563/ Link: https://lore.kernel.org/r/1650995939-28467-2-git-send-email-quic_khsieh@quicinc.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_ctrl.c index 53568567e05b..193cc1a597ff 100644 --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.c @@ -1532,7 +1532,7 @@ static int dp_ctrl_process_phy_test_request(struct dp_ctrl_private *ctrl) * running. Add the global reset just before disabling the * link clocks and core clocks. */ - ret = dp_ctrl_off_link_stream(&ctrl->dp_ctrl); + ret = dp_ctrl_off(&ctrl->dp_ctrl); if (ret) { DRM_ERROR("failed to disable DP controller\n"); return ret; -- 2.35.1