Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1282590lqe; Mon, 8 Apr 2024 04:47:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViopE7zX/YVa8PYxqJ3diqmaDGTmKaNClMFCiqiahr/ovFp+J6d362ike+05e4borDsVf+P6ts0LVsx0vsMT4J4wcwNx2h3Lh3JpmUEA== X-Google-Smtp-Source: AGHT+IGnuectCPHcQrpKyhZ5rEXAiOZZeqeG9t5WCs3DPmM/nCMcDTSC+k/oeKlFUIWsR63irBzv X-Received: by 2002:a05:6e02:1a89:b0:368:efa4:bdf8 with SMTP id k9-20020a056e021a8900b00368efa4bdf8mr10267376ilv.21.1712576847787; Mon, 08 Apr 2024 04:47:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712576847; cv=pass; d=google.com; s=arc-20160816; b=MnhSJyfrgVgcmBoVSwWoDyaWs3yhxKr0ooc1nF4ChnWsvxPOAHOzJ61DZhPsxAA1Vf 0MN6ZztjsQkJud+RiAOFXv2TypGfm76yQDSX+NnhV0g1Idf0f1QFI6XePn5a8JpAI1VX gMdEAx910CDnGBLwSSPIg5vDReVx79XTlmh60l8MuaMYvrt1unUdUtz8F4ucBFpnEp/k JTK3asfF+lm1Fs3lfWI66Ir9Fu1uCuTFvwdqN7V332G2ZEpV5TuBpSC6zdhKWTLVLwjV ObReQHUvrAq9/I1NGjDopuqg5IcKV4UW2VSBDZtIPsIFwzG622+xGHLpJrW+ZT7AU6bl 816g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=64cuR2i1dQD0IH225310OR1c+tox9VMCKmc6hrJvTAA=; fh=0C1gvgqCWD043LYZNzEnobZoZXEXAs3eg2afTXG2WM0=; b=PrgeX9Q9pmIQtFzEG1SnyS/qOwRYaZrbxN2W5a2w5cfkrwAq+/1mTNpoj4gWdi87R6 j7+RPl5v/vDeyFlH/XV6dVu0C4KUoinRDdbn33sXMMK5WJa2sBG/QZGLt4sREuIFhSg0 DiI+ryPxafPOApwtusXSIxSOSM9yALh00oEnYZfA5YSW8/g3ky+pppYXDMMt1KE1Mugg d7uZ9V6gc8dTA9Gp4swXiHLwGv2TPOFVzarPJ28gJX1b5Bj2h/Y5h7fQOH7+weINOM7U 9gIoAAyv5nZmrf3MqCiy7FyHdfgT8s/IssZnZHaD2JVvHvFA0m/HsLhWVnxr9IUUFini iWEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="S/G4QX02"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-135277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s17-20020a632c11000000b005dd3d01b50asi6218992pgs.17.2024.04.08.04.47.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 04:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="S/G4QX02"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-135277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 70236282789 for ; Mon, 8 Apr 2024 11:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49C716A33F; Mon, 8 Apr 2024 11:47:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="S/G4QX02" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DAF569E07 for ; Mon, 8 Apr 2024 11:47:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712576835; cv=none; b=hZlu2Bq1giXw89hICwpKAHR9Mo4PUdS/P6Yim7i6XBXi0bJ3cvw7Ps87SEh11p6XAPcnH7bCExpahJmXJuKB1d61e7D3fr+lXENc5PSalH2iq0qyxV4EDhkQq6tNwwH7kFnCB5W7RBcKFyiZwyYiMUN7qys90koSnXEUOBxuGLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712576835; c=relaxed/simple; bh=JEEcZ7GT4m842B7HDSa1gs6t5sncwlWhVy9ppSIiaIw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UmP95oJOvC1XWFVxdUMPjasTadc7lgsstwuw48hA7WWw9Lvo6tWdmZYEyKwWTbeC9sqIH+A7pvqmApn86vtTvtqboJr5vAJitOCowAuVPwA36/BucvBfAMZcEkTi203b44m8Y7nsVLNCO0JE20/f1fRUt8z/WhbLQd+PvYMmSZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=S/G4QX02; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-51381021af1so6901245e87.0 for ; Mon, 08 Apr 2024 04:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712576831; x=1713181631; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=64cuR2i1dQD0IH225310OR1c+tox9VMCKmc6hrJvTAA=; b=S/G4QX02wZnjOpjv8gK6fehWyj6iTtzWtOJzh0M5jCGnfQkGPp9gUsnwEUpkSY0xer trtjfnxtVVoj4DXI0mdRCEouOjY2tyJeR4NPg1If9orQ8e5YunJWUqlpfnmklyn1iX+/ TrZYnKg/hpX4j38oH6zTWG3dhPEY4sZKeq416M3/C0uXhqqcXqIn8xwCmgtO8ahcPFni 0t/2uXd+WeQM/ig8H+jN5Vy+4AS8iT1ByA54fsR/F/dxNHntjQ4UQ4obnr7Sus0N8xT+ K9fPKaTOj7UdJKSjNkXn6FqnCQKFCZOUNeaZ71sF018IeNjwlrM0qkuz+hdqqokdsnrO N/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712576831; x=1713181631; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=64cuR2i1dQD0IH225310OR1c+tox9VMCKmc6hrJvTAA=; b=KAghEgOAK9qtUtYLZEVBO18A+wQZnrV80Xv2J+XL7JuVbp0Xu0rqcPXXNhLta6GcLZ Gke7DiBydd2wwG1XC1AQpbISYeLYfbmKdZF/NrBuaT+BVJHPc9Wg0DB0WiZO1hnw779o OhixRrJpKBEtt2bTUdYPrj6++8ptamUqzyeovZ7R/dl3O3JJsiXU323mH2yRV0DxV3mC VPxU8Nq4gTnZNQheFF+yf/S6Ln4ierhPTVreNK0fLKhmDg0AhkXac/ZOZcU70Iv9J3d4 CL8Zqrw48RRLSRAT3kZVRX2HSeMJWdasEMOJMONqzn+bB2CMGEf5qt9x5LB4+9XfkWqO 8luQ== X-Forwarded-Encrypted: i=1; AJvYcCVUF05NaSfOCxUzdV9y6g8fkOux+QN/vr29VVzRCm1M31ArGv6Ar+h0jTm5DW2uUo3WKJo1dwZ3/yp1Pct1orrOxFJxTqL3TLGuVWvW X-Gm-Message-State: AOJu0YxGMXgfZlZrz5A5ozU6oTfo6NZFDSSvXgWf9+c3+5+qnmkf3Iz2 6l64lOeodjRiNeU4yUcpR2yakjSM6uQwiFdzfDNzIpnuH3cKDfN1fx6cZm4/+iXGYAezOyYF/jk e X-Received: by 2002:a19:6446:0:b0:513:7e83:b3f2 with SMTP id b6-20020a196446000000b005137e83b3f2mr7832191lfj.45.1712576831520; Mon, 08 Apr 2024 04:47:11 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id g17-20020a19e051000000b005158ddab172sm1175549lfj.19.2024.04.08.04.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 04:47:11 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 08 Apr 2024 14:47:04 +0300 Subject: [PATCH 1/4] clk: qcom: dispcc-sm8450: fix DisplayPort clocks Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240408-dispcc-dp-clocks-v1-1-f9e44902c28d@linaro.org> References: <20240408-dispcc-dp-clocks-v1-0-f9e44902c28d@linaro.org> In-Reply-To: <20240408-dispcc-dp-clocks-v1-0-f9e44902c28d@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio , Konrad Dybcio , Neil Armstrong Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3066; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=JEEcZ7GT4m842B7HDSa1gs6t5sncwlWhVy9ppSIiaIw=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmE9k9tcMAUMKUHJNNPHZnqDs/qTZ3VWTBd0n2i fafY7QDhhqJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZhPZPQAKCRCLPIo+Aiko 1XIfB/4kyD9Ash8QTxO2U1slDgEC6Zst91dV2SrsOfjSQfodYgvtIi0DIYikJyMoNSEf2j5pH7z AmsrZuna+oYnHu93FXhbYBeXGE19J5BKrhKgfy2eKUsZo1sA2c15HXrdGOOeIGAi9o/rE26LwWj Ifg9g5154EOEPVsUxx59wgDYCOQ+0+S9PXHGtGoDRq33Da1IHOGfIuSjlu78mnvqDHyldV/xDL6 omC7299WD21kaB5nEQ5x+CDKGs3MoHZ2W+a6JmxPWu4nppLjb+WEjM0yU7sDTbPz0HwGj/yJ0Pq ZdBgwj+64oxGAVrQfKSD6ujPWp4QZNv8K5sP0ieS4/P0vOkL X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On SM8450 DisplayPort link clocks use frequency tables inherited from the vendor kernel, it is not applicable in the upstream kernel. Drop frequency tables and use clk_byte2_ops for those clocks. Fixes: 16fb89f92ec4 ("clk: qcom: Add support for Display Clock Controller on SM8450") Signed-off-by: Dmitry Baryshkov --- drivers/clk/qcom/dispcc-sm8450.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers/clk/qcom/dispcc-sm8450.c b/drivers/clk/qcom/dispcc-sm8450.c index 92e9c4e7b13d..49bb4f58c391 100644 --- a/drivers/clk/qcom/dispcc-sm8450.c +++ b/drivers/clk/qcom/dispcc-sm8450.c @@ -309,26 +309,17 @@ static struct clk_rcg2 disp_cc_mdss_dptx0_aux_clk_src = { }, }; -static const struct freq_tbl ftbl_disp_cc_mdss_dptx0_link_clk_src[] = { - F(162000, P_DP0_PHY_PLL_LINK_CLK, 1, 0, 0), - F(270000, P_DP0_PHY_PLL_LINK_CLK, 1, 0, 0), - F(540000, P_DP0_PHY_PLL_LINK_CLK, 1, 0, 0), - F(810000, P_DP0_PHY_PLL_LINK_CLK, 1, 0, 0), - { } -}; - static struct clk_rcg2 disp_cc_mdss_dptx0_link_clk_src = { .cmd_rcgr = 0x819c, .mnd_width = 0, .hid_width = 5, .parent_map = disp_cc_parent_map_3, - .freq_tbl = ftbl_disp_cc_mdss_dptx0_link_clk_src, .clkr.hw.init = &(struct clk_init_data) { .name = "disp_cc_mdss_dptx0_link_clk_src", .parent_data = disp_cc_parent_data_3, .num_parents = ARRAY_SIZE(disp_cc_parent_data_3), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_byte2_ops, }, }; @@ -382,13 +373,12 @@ static struct clk_rcg2 disp_cc_mdss_dptx1_link_clk_src = { .mnd_width = 0, .hid_width = 5, .parent_map = disp_cc_parent_map_3, - .freq_tbl = ftbl_disp_cc_mdss_dptx0_link_clk_src, .clkr.hw.init = &(struct clk_init_data) { .name = "disp_cc_mdss_dptx1_link_clk_src", .parent_data = disp_cc_parent_data_3, .num_parents = ARRAY_SIZE(disp_cc_parent_data_3), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_byte2_ops, }, }; @@ -442,13 +432,12 @@ static struct clk_rcg2 disp_cc_mdss_dptx2_link_clk_src = { .mnd_width = 0, .hid_width = 5, .parent_map = disp_cc_parent_map_3, - .freq_tbl = ftbl_disp_cc_mdss_dptx0_link_clk_src, .clkr.hw.init = &(struct clk_init_data) { .name = "disp_cc_mdss_dptx2_link_clk_src", .parent_data = disp_cc_parent_data_3, .num_parents = ARRAY_SIZE(disp_cc_parent_data_3), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_byte2_ops, }, }; @@ -502,13 +491,12 @@ static struct clk_rcg2 disp_cc_mdss_dptx3_link_clk_src = { .mnd_width = 0, .hid_width = 5, .parent_map = disp_cc_parent_map_3, - .freq_tbl = ftbl_disp_cc_mdss_dptx0_link_clk_src, .clkr.hw.init = &(struct clk_init_data) { .name = "disp_cc_mdss_dptx3_link_clk_src", .parent_data = disp_cc_parent_data_3, .num_parents = ARRAY_SIZE(disp_cc_parent_data_3), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_byte2_ops, }, }; -- 2.39.2