Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4449418rwb; Tue, 6 Sep 2022 07:42:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR6kvr10ZYxFVilPuYfMP67QhzxiH0dcsbbsCfCMvB9vA+SK+TI3RXyzXSw9j0/og4OFaFzg X-Received: by 2002:a65:5789:0:b0:41a:4a7c:635d with SMTP id b9-20020a655789000000b0041a4a7c635dmr44968278pgr.60.1662475337196; Tue, 06 Sep 2022 07:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662475337; cv=none; d=google.com; s=arc-20160816; b=XJjSx+GZR4xFFWs+bPgjipitga4tT8UaaR8wJ6KzQdtfTOEilrnPHq2Q5iRJsoQywy mhpJaybjRcfN+P+rDMAcvhL3ssckJFmt3vqrrtVhXovVWE0fnboG2irIRvYqoTBXRg8k Z32TZT6JigYObTpdv0WtDm6ye8YXi7MbBFuQCVfozXG504wvTzw7YXDkYqmN49Vb/VzN RZtC+1fuEgaQ9a/5QCBlskBKsHZfIaH41za134qhzX7YzckXaGDYJbFr4xKxVJT0wCfO qTndj8Km1IezlwejUtPLDUx2d/ubfFSEaaNvw0PFkYw6ZfJbfOU/D4DaxO2EyMVGvEwH M/iQ== 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=zrc1ZJEJxinSsTXQ8sKW+lF1oLVEu8QUuoV1fWUsCXM=; b=PYxHK0LCiAoS+PXMHv4GuH2HB5PpHgv1J9bkzWoGmsx3S18G5a67AkvmQJELVtk8ij 03yfcS6CEuHnv3LmXiidqlY24AT9CcLKTMV1/pBU+m22CGvjiDx7LObSzH5OEqyY4Stl YH2M7DDQqHfgMEthqCXyjVIHjFXmQiJsIt7LhJakkUEYFZDgvDUbpVZ78vw54/m5mxTs ofh+AdyYmZj1aHZnKm/v/JZ8RwjWXTwMWRwOc0OqkTKOF9LcIit1hGV/QhKGxQvquqTE f6Ce6CQkUdrr478Dnci7LQG/Abmz4edA8229h1mWMv4wMKbMNFIy+XouVBogNYBOqi3j 0s1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mRAnPj66; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020a63ee4f000000b0042c3dd6e3ecsi14403109pgk.527.2022.09.06.07.42.04; Tue, 06 Sep 2022 07:42:17 -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=@linuxfoundation.org header.s=korg header.b=mRAnPj66; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240533AbiIFNdB (ORCPT + 99 others); Tue, 6 Sep 2022 09:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240469AbiIFNch (ORCPT ); Tue, 6 Sep 2022 09:32:37 -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 6FE2675FCE; Tue, 6 Sep 2022 06:32:31 -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 3530461546; Tue, 6 Sep 2022 13:32:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 427EFC433C1; Tue, 6 Sep 2022 13:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471149; bh=owkutCVtF3WgN0PkOOap7smURXQ96hR7pkmpNAVs74c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mRAnPj66ggkHv1VYuccWeSdsy2tVjl7mI80EJsupACt4r4jnw5EBXtNZ8w6ZPbPHo ipWqsctOgUu7xsjkg8156gGhGg8dq3uXUeHVhenTbIaJAQjqYYhVd5crs4NiCD51sT q3lwMTqVZYgYw+gK66B939AOezVrmCh0nyKu8EdI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuogee Hsieh , Abhinav Kumar , Stephen Boyd , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 5.10 02/80] drm/msm/dp: delete DP_RECOVERED_CLOCK_OUT_EN to fix tps4 Date: Tue, 6 Sep 2022 15:29:59 +0200 Message-Id: <20220906132817.040032328@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132816.936069583@linuxfoundation.org> References: <20220906132816.936069583@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Kuogee Hsieh [ Upstream commit 032d57960176ac01cc5adff5bcc5eb51317f8781 ] 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 Changes in v3: -- revise commit text Changes in v4: -- fix commit text newline Changes in v5: -- fix commit text line over 75 chars Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Kuogee Hsieh Reviewed-by: Abhinav Kumar Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/497194/ Link: https://lore.kernel.org/r/1660258670-4200-1-git-send-email-quic_khsieh@quicinc.com Signed-off-by: Abhinav Kumar 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 b9ca844ce2ad0..9fac55c24214a 100644 --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.c @@ -1205,7 +1205,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->panel->dpcd); -- 2.35.1