Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp943900rwi; Wed, 19 Oct 2022 05:03:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7l2+jgawAij5Ac8SgA9G5xcAJxnyC0Kk06LHC95HbEiMtPJpPBJJKTNrfv6tcwtihSrIwN X-Received: by 2002:a17:907:3f0b:b0:781:e783:2773 with SMTP id hq11-20020a1709073f0b00b00781e7832773mr6241426ejc.610.1666181020129; Wed, 19 Oct 2022 05:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666181020; cv=none; d=google.com; s=arc-20160816; b=gAAdbd8nFoR5C4bNpaeyPt1ZPx3r3E+DAjwJx4Q+7P5H3PM1GVgkKc/S+SEX02ut8M c8Zh4nZX/Ju7Nc4RZcK5OlSYEIVsCTfXOKi85zB/+y1CGna0YFubttKEINOET9PWvBXC mmstA2mqyXIsrBTuVFx6epSt3hw/RYmbg1uQnJvs/0waWjNcWRHctXnE+r85fxnbxEpN 2ysPTVoO9FCpmN8xJc4xDh82t6JcrayFans6/woAFt1yGIJ+YQ2DS6T4pytNHDD1lXJ6 niUQkSJanNLnQb9oqrHrBOpDGMsIg0X6PUzTUeeh6NiS/ihAVr/L/fsIccn7Mok6iV13 fUOA== 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=fM0FVpQuZrBDu9a2iRTZRTCMebAGXTHC3H5gOPUHqJA=; b=hp+DIHUUQGkGHy8JpnN27TSZO3jdTsrfbcs4r3cIiXaghhayv5RRSSl1gllE7EZt+b p0MLJO/RsigMYXCudGSZACxO1cLqeB0kckFmlMv9nQ7EV79oxe3umen+bN3agDrF7fBj I9dupBZ09TH34MJqBejr9ilp0QUIm+BCVFPAYfUu+6JJw93efFxVeiuIBJrillrDKhPH PtbuI0RqvxhobO3oEG0mkzpJtJixN1HiN/rEOhUKUNtBjWV5wFN17czCTJEkRR4+cpFv 7/kzzrXveIeLsM9a9HSyPDXjF9SkkTg9YF8XlJGFCwByN4AG9XYp7/SjPnFClIEkwR7v fxFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KJOlCNVc; 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 g8-20020a056402320800b0045ccd1715d5si13826249eda.435.2022.10.19.05.02.42; Wed, 19 Oct 2022 05:03:40 -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=KJOlCNVc; 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 S231557AbiJSL5K (ORCPT + 99 others); Wed, 19 Oct 2022 07:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232402AbiJSL40 (ORCPT ); Wed, 19 Oct 2022 07:56:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4FBF176513; Wed, 19 Oct 2022 04:35:21 -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 ams.source.kernel.org (Postfix) with ESMTPS id E9B2DB82417; Wed, 19 Oct 2022 08:55:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50F53C433D6; Wed, 19 Oct 2022 08:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169750; bh=iHwbAIKGTFm2iePSccsgJpuXwAdrLKOvAqCJRJ1QZhE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KJOlCNVcfE/ycLSFdC/gVYtZm9GCIcN5nInCthQIeRa7DZxD9+to34yaaUiktI28y HpQ7Z6E0Df4GjIj6vRmQqI9o91toQN7jYCtAqTxyWenyb2C49HRyn5vAi4INqabOpn oTTf+phWW/L+9Kq/XEVpLZs3jm9awwnaHjlkm7ZE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuogee Hsieh , Stephen Boyd , Abhinav Kumar , Dmitry Baryshkov , Rob Clark , Sasha Levin Subject: [PATCH 6.0 394/862] drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa() Date: Wed, 19 Oct 2022 10:28:01 +0200 Message-Id: <20221019083307.344399744@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@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.4 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 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 aa0bff10af1c4b92e6b56e3e1b7f81c660d3ba78 ] At current implementation there is an extra 0 at 1.62G link rate which cause no correct pixel_div selected for 1.62G link rate to calculate mvid and nvid. This patch delete the extra 0 to have mvid and nvid be calculated correctly. Changes in v2: -- fix Fixes tag's text Changes in v3: -- fix misspelling of "Reviewed-by" Fixes: 937f941ca06f ("drm/msm/dp: Use qmp phy for DP PLL and PHY") Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Abhinav Kumar Patchwork: https://patchwork.freedesktop.org/patch/499328/ Link: https://lore.kernel.org/r/1661372150-3764-1-git-send-email-quic_khsieh@quicinc.com [DB: rewrapped commit message] Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/dp/dp_catalog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_catalog.c b/drivers/gpu/drm/msm/dp/dp_catalog.c index 7257515871a9..676279d0ca8d 100644 --- a/drivers/gpu/drm/msm/dp/dp_catalog.c +++ b/drivers/gpu/drm/msm/dp/dp_catalog.c @@ -431,7 +431,7 @@ void dp_catalog_ctrl_config_msa(struct dp_catalog *dp_catalog, if (rate == link_rate_hbr3) pixel_div = 6; - else if (rate == 1620000 || rate == 270000) + else if (rate == 162000 || rate == 270000) pixel_div = 2; else if (rate == link_rate_hbr2) pixel_div = 4; -- 2.35.1