Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2155319imn; Mon, 1 Aug 2022 13:17:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1skT6wEgvMHsJ7ObtKRrxMgkdsc3GL87ursReV0m1iG14OXe+nQnZh6EfKS25A03d1vUMQJ X-Received: by 2002:a05:6402:1011:b0:43a:76bf:6c40 with SMTP id c17-20020a056402101100b0043a76bf6c40mr17668460edu.352.1659385023320; Mon, 01 Aug 2022 13:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659385023; cv=none; d=google.com; s=arc-20160816; b=HfeJq1rlIrYSpvS+Q4xcFJSgGvoUIgvE+VC187LQ17+mpt4G7Zqk+jLNuXMkYR94D6 vusG7eC/Ht5vSPQHOaJW3+rtidb+eWp4h1DGWEhgwzghBoyQl52LsVCfG5PKnbXjxvaC rM5s0SVTtGTgcXIfEiCvqNO17RtEgTrOIJyN8fhHzwhNKiU0VvNsfUa7Y3sck9iMyrz/ N//WNUv+QpA225lAsmn9XhQAgDwTa2yxOqccNtrFieDXh7X6aeGojbAxedE5tPFcsy/N aoRJ8tP6POqjjIxhYLcggXYMfetYma2mznMtVGRZ8dUsgOTqAyEqGHFSFqIkGdrSn74e I3hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=n6IukTgG6N+YuAzTEhN370nFPejMJyHqYPVPP8VIqXc=; b=Y40IR1PeaehQGaJi92z+dQPBJftmIpaMEiv3H/8ZsJ7my9oG9CWS1h6i4yzlnpT7UM 8+dx9g5zl+bQ3JlwPfUJpFH9eZ3Ws8wlPtiJb5vM87aVPc1VwhD+8uJ5xSip45CgWotz s1XKSOS14B4np3B9nYkEcrv5pnxuiokwkWF76sY9goLRp/aeX0MY5QEsfp6Buezu+6Xk JuTcc4htyVa9+3pOuu7LlP5cgS6iy276okG2irsrT2vI/+aZa+qw1lhYNTzF5fLtOTTn Cr70QyqvRoJ+8X8uq5IFIFlbiQ7LLI3adkryLpj+JZNLwq4dZn8GlC+hCkDjbguBumPY nYAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Hgg2AIPZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n25-20020a5099d9000000b0043c2dd3d889si11195250edb.428.2022.08.01.13.16.36; Mon, 01 Aug 2022 13:17:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Hgg2AIPZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235170AbiHAUP1 (ORCPT + 99 others); Mon, 1 Aug 2022 16:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235035AbiHAUOw (ORCPT ); Mon, 1 Aug 2022 16:14:52 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD9543E68; Mon, 1 Aug 2022 13:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659384842; x=1690920842; h=from:to:cc:subject:date:message-id:mime-version; bh=n6IukTgG6N+YuAzTEhN370nFPejMJyHqYPVPP8VIqXc=; b=Hgg2AIPZyAvDGQlYOJuRFZyTf4WdgIHrWLkmotRdr8FrhJN2YDacdK6Z u8CZyYgCmjNJwVARP1EZ/gViJwxFIv8ynQBXoY31oZ/bcVRd2IbtHTY4/ 6Ea/Nl3x7IaVuEUMbOaXoIv35TPGXGqIA9QU/i2gVOW4vahul3/8CtM6Q Q=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 01 Aug 2022 13:14:01 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2022 13:14:00 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 1 Aug 2022 13:13:59 -0700 Received: from khsieh-linux1.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 1 Aug 2022 13:13:59 -0700 From: Kuogee Hsieh To: , , , , , , , , , CC: , , , , , , Subject: [PATCH v2] drm/msm/dp: delete DP_RECOVERED_CLOCK_OUT_EN to fix tps4 Date: Mon, 1 Aug 2022 13:13:50 -0700 Message-ID: <1659384830-9909-1-git-send-email-quic_khsieh@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Data Symbols scrambled is required for tps4 at link training 2. Therefore SCRAMBLING_DISABLE bit should not be set for tps4 to work. RECOVERED_CLOCK_OUT_EN is for enable simple EYE test for jitter measurement with minimal equipment for embedded applications purpose and is not required to be set during normal operation. Current implementation always have RECOVERED_CLOCK_OUT_EN bit set which cause SCRAMBLING_DISABLE bit wrongly set at tps4 which prevent tps4 from working. This patch delete setting RECOVERED_CLOCK_OUT_EN to fix SCRAMBLING_DISABLE be wrongly set at tps4. Changes in v2: -- fix Fixes tag Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Kuogee Hsieh --- 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 ab6aa13..013ca02 100644 --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.c @@ -1214,7 +1214,7 @@ static int dp_ctrl_link_train_2(struct dp_ctrl_private *ctrl, if (ret) return ret; - dp_ctrl_train_pattern_set(ctrl, pattern | DP_RECOVERED_CLOCK_OUT_EN); + dp_ctrl_train_pattern_set(ctrl, pattern); for (tries = 0; tries <= maximum_retries; tries++) { drm_dp_link_train_channel_eq_delay(ctrl->aux, ctrl->panel->dpcd); -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project