Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp680169pxm; Thu, 3 Mar 2022 02:22:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfQLBMG+2nSnPqGtPr/WkpYVLxPQre7Vvzcj9sYiTlCGfQ05J46jWVuw+ECl4MYfliXPea X-Received: by 2002:a05:6402:3489:b0:415:bc37:a81f with SMTP id v9-20020a056402348900b00415bc37a81fmr6697742edc.354.1646302976581; Thu, 03 Mar 2022 02:22:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646302976; cv=none; d=google.com; s=arc-20160816; b=ynnEExUWZcMZx/4CvY/v9TFoazf8GMu4YKNn7uO6ALbl6oPX1TJw+8Ut273mOvEkQX E7p69AqfpEicZaWu2fnjFzKAUBfo8+TJsEbod5bEqeeAzHiir8U5kUNMYtmDdgW7Gvl5 4dVGQi04pXOYWUuo1FPjq0no3x2Y1XOmiqazvZC5410WuuSzAkwJT7SgPQkaFalC+P+6 QH3P46ku/2QpZupkOKAEtq9BOuswt71/ZI3QgIM4xl0lv56k5pe6CIFtORqWm7ziigtr MArO/JEfK8xzpN6u45SogmCBe8PItaVqcpTozZcOIsTNuEvaKrTzEEdauKVDoVf2Eakz Cexg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=30NUc2b8Om9KMafJwjH17u6IzNbj2TQht/smpWaWFew=; b=DiDNa0d2/mqzhlaAcSxymmX3xOcDmoPNCZge3uUkmxa2FBMgSDct+Wk5vSIGYPGj5N TQvUngAntgJr0BhChttTTzgzE9emeSGRBVaO8tWKbPeO/kD4mcFu6k3t0D6KvbLOKTq6 dd7tAeO5buf16mzFexg322Bj26L8RhJMFUmfiRkNZOBFY0jiEvfO0VCLvnxtfYyANFOW 7/Q4+WGu8e8eLTpsC9lUMBKTiTGQ2ccuc/vJhLZwxSeyhpGWtKE8ZyTw3QPouM6k+U0M SiMMY756avd9/mLra3HwKfemotNbh8Zc2NF5HajPFyi1kw+SM9gAuB2VDS279qKENEsH J8vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=E50fqHy7; 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 y9-20020a170906524900b0069df99f9f3fsi962738ejm.757.2022.03.03.02.22.31; Thu, 03 Mar 2022 02:22:56 -0800 (PST) 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=E50fqHy7; 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 S232060AbiCCJlN (ORCPT + 99 others); Thu, 3 Mar 2022 04:41:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232021AbiCCJlG (ORCPT ); Thu, 3 Mar 2022 04:41:06 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B685F177D1A; Thu, 3 Mar 2022 01:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646300421; x=1677836421; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=30NUc2b8Om9KMafJwjH17u6IzNbj2TQht/smpWaWFew=; b=E50fqHy7ZcnEQMhUCMEeekt898DUJxpditJv3CJeEh+XxXelVgchG9YU NPaRVdj4XYL/GEmy7Y5Ebn2QpC98rikedTCRSTtyzQ6dp1mminxT8zwDi 1Px/JA905MYh3L+iUM3C0/4dG4kHNMBoepgYxzkTezpmvM2agSRWQqeSZ g=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 03 Mar 2022 01:40:21 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 03 Mar 2022 01:40:20 -0800 X-QCInternal: smtphost Received: from vpolimer-linux.qualcomm.com ([10.204.67.235]) by ironmsg01-blr.qualcomm.com with ESMTP; 03 Mar 2022 15:10:06 +0530 Received: by vpolimer-linux.qualcomm.com (Postfix, from userid 463814) id 37EC54E19; Thu, 3 Mar 2022 15:10:05 +0530 (IST) From: Vinod Polimera To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Vinod Polimera , linux-kernel@vger.kernel.org, robdclark@gmail.com, dianders@chromium.org, swboyd@chromium.org, quic_kalyant@quicinc.com Subject: [PATCH v4 1/4] arm64/dts/qcom/sc7280: remove assigned-clock-rate property for mdp clk Date: Thu, 3 Mar 2022 15:09:58 +0530 Message-Id: <1646300401-9063-2-git-send-email-quic_vpolimer@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1646300401-9063-1-git-send-email-quic_vpolimer@quicinc.com> References: <1646300401-9063-1-git-send-email-quic_vpolimer@quicinc.com> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 Kernel clock driver assumes that initial rate is the max rate for that clock and was not allowing it to scale beyond the assigned clock value. Drop the assigned clock rate property and vote on the mdp clock as per calculated value during the usecase. Changes in v2: - Remove assigned-clock-rate property and set mdp clk during resume sequence. - Add fixes tag. Changes in v3: - Remove extra line after fixes tag.(Stephen Boyd) Fixes: 62fbdce91("arm64: dts: qcom: sc7280: add display dt nodes") Signed-off-by: Vinod Polimera --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index baf1653..408cf6c 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2856,9 +2856,6 @@ "ahb", "core"; - assigned-clocks = <&dispcc DISP_CC_MDSS_MDP_CLK>; - assigned-clock-rates = <300000000>; - interrupts = ; interrupt-controller; #interrupt-cells = <1>; @@ -2892,11 +2889,9 @@ "lut", "core", "vsync"; - assigned-clocks = <&dispcc DISP_CC_MDSS_MDP_CLK>, - <&dispcc DISP_CC_MDSS_VSYNC_CLK>, + assigned-clocks = <&dispcc DISP_CC_MDSS_VSYNC_CLK>, <&dispcc DISP_CC_MDSS_AHB_CLK>; - assigned-clock-rates = <300000000>, - <19200000>, + assigned-clock-rates = <19200000>, <19200000>; operating-points-v2 = <&mdp_opp_table>; power-domains = <&rpmhpd SC7280_CX>; -- 2.7.4