Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3335967pxp; Tue, 8 Mar 2022 12:10:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJymIN/dvsOvxriVNHhacrL0EfWxrtBJBDWvs8UO9ZkeCh95OCatHKYpJd7i/agZXva5ZhE7 X-Received: by 2002:a17:90a:bd04:b0:1bf:951d:5bf2 with SMTP id y4-20020a17090abd0400b001bf951d5bf2mr3441484pjr.18.1646770201661; Tue, 08 Mar 2022 12:10:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646770201; cv=none; d=google.com; s=arc-20160816; b=lZXwjbDnDHFbXKrYkAwL9GYhAAtTOLdQuw6M4m9ajyG+QqFDInKX//GOntLu/myXOu lIu0FcvpuKLAaLsbOfpVCNSw7DHDliyXJg142O7/tsSvv1jYVcrNL6OMoec/OksR38GP o+OT1KSpqtqDwLS9CgtWtva1fiT5O6ymHlpPLaSCrvgDSSZo43zq22bANRT95xa3HcYo NquNJ7CYpz1X4uy7r/0Q6IG9dImVzdzxM+XyZw9VPXvOubS7cKpjyxehiQVDsHDmVe/p fYmMOVApw+et6wsqG+pyfXR7f0OWiu2wsJvx2UBMfy8+hS8fRfJ6/0ZvUG9Hs5E/J8a+ 9K3Q== 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=2xxX+RXGBrLvHJHOqC2plDl24DyYYOQdo/LiauSG4nw=; b=TDg6fSRjf2Kfs2l1eeU0NujLPJmZkNGobQHfU3RLjrJNSFivRiYCgoksAYBGIAAYoN uYd9LnrYhSZXrUt+uVZ7I8MA/V+hVEoz84+pvSKmXBTETjnpPHfm/5bIlHtva1W+rEH8 rfKFRU+ufhT/YG7gbwJMnZA3QbUEBI4qdA/8OOIUb3tyF7x3qocxgu+WT2xFZ4FTp9Yr 4JHe4qIE/P8vOMy6yTS+eh34NuSm+6CHzR7Ygi5VgDXiI4qGm79dTC6dWiRP0A4fhi+N 1H6RYvrBxeNQT0u8p3Q3sim7fz3RKY6lNqicPXPQ9+IyKpdEFCdcjz0P/uz15Km5NqYq MKEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=nBmriqWC; 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 k13-20020a6555cd000000b0037893662500si17280471pgs.340.2022.03.08.12.09.44; Tue, 08 Mar 2022 12:10:01 -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=nBmriqWC; 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 S1348277AbiCHQ4W (ORCPT + 99 others); Tue, 8 Mar 2022 11:56:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348320AbiCHQ4R (ORCPT ); Tue, 8 Mar 2022 11:56:17 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 527E74ECE6; Tue, 8 Mar 2022 08:55: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=1646758521; x=1678294521; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=2xxX+RXGBrLvHJHOqC2plDl24DyYYOQdo/LiauSG4nw=; b=nBmriqWC+kPVbzP9SXq450Q4ra/rjaa9BTMolDlHSKVAuzP1H5FHsPr/ klGRjVh6Iv8ClkORqOecpovRTEpoONH1J955aT5bGGgasXgtMXjMmKeKF AFwWYZLoWuWrrvQ+p+TTJxvF6XONNf8wOEqaUllTp9LDnDPGKgjtGIUyy g=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 08 Mar 2022 08:55:21 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 08 Mar 2022 08:55:19 -0800 X-QCInternal: smtphost Received: from vpolimer-linux.qualcomm.com ([10.204.67.235]) by ironmsg02-blr.qualcomm.com with ESMTP; 08 Mar 2022 22:25:03 +0530 Received: by vpolimer-linux.qualcomm.com (Postfix, from userid 463814) id 5DE2453EA; Tue, 8 Mar 2022 22:25:02 +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 v5 2/5] arm64/dts/qcom/sc7180: remove assigned-clock-rate property for mdp clk Date: Tue, 8 Mar 2022 22:24:57 +0530 Message-Id: <1646758500-3776-3-git-send-email-quic_vpolimer@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1646758500-3776-1-git-send-email-quic_vpolimer@quicinc.com> References: <1646758500-3776-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. Fixes: a3db7ad1af("arm64: dts: qcom: sc7180: add display dt nodes") Signed-off-by: Vinod Polimera Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index e1c46b8..eaab746 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -2900,9 +2900,6 @@ <&dispcc DISP_CC_MDSS_MDP_CLK>; clock-names = "iface", "ahb", "core"; - assigned-clocks = <&dispcc DISP_CC_MDSS_MDP_CLK>; - assigned-clock-rates = <300000000>; - interrupts = ; interrupt-controller; #interrupt-cells = <1>; @@ -2932,12 +2929,10 @@ <&dispcc DISP_CC_MDSS_VSYNC_CLK>; clock-names = "bus", "iface", "rot", "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_ROT_CLK>, <&dispcc DISP_CC_MDSS_AHB_CLK>; - assigned-clock-rates = <300000000>, - <19200000>, + assigned-clock-rates = <19200000>, <19200000>, <19200000>; operating-points-v2 = <&mdp_opp_table>; -- 2.7.4