Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1282655lqe; Mon, 8 Apr 2024 04:47:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgN+gTuPLR72WUyt4eHv0Hy5QKFtrm8Fm+EUzyKff504XLKiISKkmGivzvtTvUwcD9Z1O+NBVhjCBxryN8C3955KMkaFpJyvmsEbTKvA== X-Google-Smtp-Source: AGHT+IFDU5+wFyOAH6a3jLqC6W04FAfFak2oQY4IgB/d3PSGj2UziRxrMxHvjQvyn6f+OSmmc8Fn X-Received: by 2002:a05:6a20:9f4a:b0:1a7:9972:c007 with SMTP id ml10-20020a056a209f4a00b001a79972c007mr8678pzb.39.1712576857591; Mon, 08 Apr 2024 04:47:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712576857; cv=pass; d=google.com; s=arc-20160816; b=0xCQ+/7jR5J8qLzRPkZoc/7z98P1bT3kfMgxzIQrTO6Cy/B+T8/i3KNpagFsi3WY4P 5L/Sr21EYKrwRmDDRtm6NgoxrD4qBNfIgrKrwQIRLYD5uY5350ikNwyGQ3QG3VSxIYF9 YcVzJr69i3teKdHDxFjuK8GPQES85uWzEP8LNvhLEKNJi2pwZrlaWzwx4HXT7TO0AY0Z VerSDiJka7JBRAnU5Ls+xqCervpNNX9t2vCaQKJ/6P4B/vzoBUBjDMDJSEdQEpRVGNoG Xy4GejslRcESAqyRcUKe83A9dVBS2FT/0QkoByfbr4TQdpQkwiWttLR8z5Mgb7OrMJMy d0Ow== 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=9iTV4QYo3hma+PsA0jLP4qJZguBY70D1nyyF3au1lSI=; fh=GxdfKfuxKPjizmj912ATQmJM8MzTqD4+p7LDQYkDUgk=; b=zTQyxdnb4vnq+Rg7tSYRMIP/UGQ4nBXjlpj5loDXFdN8iK1sg+JiZOYaCTYELcI1zp bxyG34vVs50HC8VmGg38RASAp539NQijWwo7JMrcJnl1wwZegHauaGJFnn+96GnvRFno NQW5V+wF8aw4VsqQQMrJJdDT/+eeXaFkbVOriucRSZx4iAHNohIMrSflLaz8M4j0gG3H ajGXNqnxBY3Zcu/6fy2dVELylE2c9rYc3QLZnauIIuQQPjFYJj8MTXfCmuAa9O//xNJQ lvzUPZ/OPBQSFTsld8WY9EDEvzajiEui4FaXW7XMptDDWrdU2dwLD+Up7t5rtZDebo34 Tl0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MmnZ18Fw; 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-135278-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135278-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 q205-20020a632ad6000000b005f3dca40648si6086879pgq.880.2024.04.08.04.47.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 04:47:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135278-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=MmnZ18Fw; 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-135278-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135278-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 EE509282AE4 for ; Mon, 8 Apr 2024 11:47:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 159B66A8BA; Mon, 8 Apr 2024 11:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MmnZ18Fw" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 464D369E0F for ; Mon, 8 Apr 2024 11:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712576836; cv=none; b=ABHyUo+GSQU+wCogd3jzxohFzSvlLxGj0sQlUx7Nh0KLvSDBTCi9k52N/dmF7DW5EokHhWt/KaDwL/Mbnp2o4H8YH4b95+1gsfP2ArhEOJjW/Q0vFpNZrNtjfS/iamLIUIctldCyIUvYTYfHFXPk0Luphk0rSyi++4kY+EuGuTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712576836; c=relaxed/simple; bh=OsDfVmwigHiKLQONHsnbey3y8n9mOJj5tZKTmOviAn4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FBzHNg379sibMnxfSlmkxIJeg0SmL81RP2JkipeeFKRsgGJLDnKGQ3s47b51ll4ojj+gqDbdZMhHiFaVv191xZgVQn5SrQgnollVgrQTSaEa7q2M5qxEH1G4Sk7cZ06Coz+yB2CX3eQIT0diFExlSkBIOrgJNmrOzwv0BlwIRTk= 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=MmnZ18Fw; arc=none smtp.client-ip=209.85.167.42 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-f42.google.com with SMTP id 2adb3069b0e04-516d16db927so4339385e87.0 for ; Mon, 08 Apr 2024 04:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712576832; x=1713181632; 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=9iTV4QYo3hma+PsA0jLP4qJZguBY70D1nyyF3au1lSI=; b=MmnZ18FwnEyEwiZFdyEqmoj1UrC6Cf/Yy3qDxmrS5OkpBbr4lRfx9AxvCRbkc478Yv vDyRUYereZuJxVsJABD9U0N43juvNKA9OihYUHGGj+zyC8HLXsMgCgYnb96mdjirdyBo dTIRz22L7jL7S4sZHAQE5ywZYKZT2qj3C/k/zWddzXszO6J6eMeQfIxMrv5rT1nKrT+H ag8P4/GivpRDXkDmX7iGf1m/3m3qCE2CKFPwAbwDzBxLc1sPdt/4Bc6ctMZcA5QbLcX7 ZAz9rjD2UtHK2XOj/7tWdxj0bRV0Sxbfd0CkGFlSinFYCO5pgtTLG1xBMpWmcQXsvVVM hQkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712576832; x=1713181632; 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=9iTV4QYo3hma+PsA0jLP4qJZguBY70D1nyyF3au1lSI=; b=JYNMH8lN0pgBXrZf2uGoG5bvxvLxfxPCJ+rIQUGK36BNnyHLyTbg2qpRxWNAdGKHz8 K6Nzz83nhEFE51zOpF3Ithkx8tDdzlKNf93W0QOLmU03ujcuRTntOHqTdKcVCepQ6Z/p Bh2385iRzSOfE2NA0OIysOARLQrmJcAIiONfHbPPlrR5RxCoGuEQ54zwTgZAubIl6vei 8PpsiDkWLSR4bFyiY7KXuasasAcLJgDleDukFLH8Q43/Zh+WNycjaSdCDcAfUeTsu/fn bOcGCDc4hcpin6Zy/reaI0KPdxmsFd+en8DmewRRBXYXxF5/U/Vd0pulyc4clCq+tCkl 9XpQ== X-Forwarded-Encrypted: i=1; AJvYcCWEhW4f9BAwm4JDuyVMAtiJaxSQ1klYy1KwyCFVvql2E4dyBArHZ/8qEqUTWbRKgTA+853SQcz4lb6tPG0+f32pUnPmLqVAh2b4pk59 X-Gm-Message-State: AOJu0Yw1WTH0fyFKFpRBBoEO6bwh33ogkhdOu7V96RjXFQViqLqoMJV0 a9grwNqRNxV9lEJ0Vm9ESnC9Nzh8F2z2ukvdNBezxI+A1++/tiy4zC9A9AXfam+49KqBlBcI9og 9 X-Received: by 2002:a19:8c58:0:b0:515:9783:938d with SMTP id i24-20020a198c58000000b005159783938dmr5304212lfj.63.1712576832419; Mon, 08 Apr 2024 04:47:12 -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.11 (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:05 +0300 Subject: [PATCH 2/4] clk: qcom: dispcc-sm6350: 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-2-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=1555; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=OsDfVmwigHiKLQONHsnbey3y8n9mOJj5tZKTmOviAn4=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmE9k9H5X8yWLigKleQcptLAkRmAVjhc0DUmetS t6V2YwGWdWJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZhPZPQAKCRCLPIo+Aiko 1VinCACL15UdGiAHHUzISh3SClQ/NVhj0nL6bIOISNQbcB/Y3jfnqOkEIdiL6uXtknAihDBevZq /N2gZ2INDcXqZDpYaMTwz7PB+w8qulCbwGuKHG9rrXlJSaqtvKBNv/wi2OYkRRA+KyXhGGewOA7 uWxcy/gtGLWqpucxCGaJJu3cEOCe0XiPMDXhOaJd6OXZW00rSu/rX1ioc6NPSAdz2ow+Wz83tQ5 txyqMynPFC1xcUv/1no3jrkkkHurBxz3SN8a3ZMfjBznYpMG317IlPTkSW9bsG7XqRj5aRZP3re 8oxcL6744FUt2kPjn1RFC0LTu7n/HlR/w6aIavhSjS+q2mrg X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On SM6350 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: 837519775f1d ("clk: qcom: Add display clock controller driver for SM6350") Signed-off-by: Dmitry Baryshkov --- drivers/clk/qcom/dispcc-sm6350.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/clk/qcom/dispcc-sm6350.c b/drivers/clk/qcom/dispcc-sm6350.c index 839435362010..e4b7464c4d0e 100644 --- a/drivers/clk/qcom/dispcc-sm6350.c +++ b/drivers/clk/qcom/dispcc-sm6350.c @@ -221,26 +221,17 @@ static struct clk_rcg2 disp_cc_mdss_dp_crypto_clk_src = { }, }; -static const struct freq_tbl ftbl_disp_cc_mdss_dp_link_clk_src[] = { - F(162000, P_DP_PHY_PLL_LINK_CLK, 1, 0, 0), - F(270000, P_DP_PHY_PLL_LINK_CLK, 1, 0, 0), - F(540000, P_DP_PHY_PLL_LINK_CLK, 1, 0, 0), - F(810000, P_DP_PHY_PLL_LINK_CLK, 1, 0, 0), - { } -}; - static struct clk_rcg2 disp_cc_mdss_dp_link_clk_src = { .cmd_rcgr = 0x10f8, .mnd_width = 0, .hid_width = 5, .parent_map = disp_cc_parent_map_0, - .freq_tbl = ftbl_disp_cc_mdss_dp_link_clk_src, .clkr.hw.init = &(struct clk_init_data){ .name = "disp_cc_mdss_dp_link_clk_src", .parent_data = disp_cc_parent_data_0, .num_parents = ARRAY_SIZE(disp_cc_parent_data_0), .flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE, - .ops = &clk_rcg2_ops, + .ops = &clk_byte2_ops, }, }; -- 2.39.2