Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp258049lqj; Wed, 10 Apr 2024 09:32:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4IEjd6DkJpSfrGOJQyyCQA1SjQNjI0EyOl3YOqm9pPW4y5E5z/rrioKocBY5KxYgwfZYFZNQRdvuB8D3kQGd7kwxejU5eEV0FQc3sVw== X-Google-Smtp-Source: AGHT+IFhaxfrLgLXO0fcWj58b9fzPSy7JReDJeem0EA254Wk4HaLF17tWBVZxdBgg4RmF14Q8vcA X-Received: by 2002:a17:903:1cd:b0:1e0:b6d5:bed with SMTP id e13-20020a17090301cd00b001e0b6d50bedmr3068887plh.5.1712766720626; Wed, 10 Apr 2024 09:32:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712766720; cv=pass; d=google.com; s=arc-20160816; b=ethP9L5GdbPH/9J0S+5SMNkzs0uVyc2pq6LA1/dU0Q/XQUmf5PcVzLXljxebMKHMSs 9avHFWtag8J+vVkRqS6ClB7y9hNprhovGM9SVlZ0EiBENciG6idCgviijy39zdYH2loY 8VCMn+maET4pywLwl1Qr1FmQrcpR3HHPDZwE7Isxtz/5tBugptMZs+CSuqQBJYbU4aPB 660crUrMUxpCAhD+m0DQ2jbePGCVvZLok9MBbTDxMs7mCrAESMOzaCLP3qy4ybSSbSO+ 9uoqB+tgWMS3bjLt7YC9Oig1RWOpf0Jus279FyOeGAQDSRENIsI/ia7lFjhusPzbIa3l hOdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=9vNeFQNktlIA8w3wmg3JURuXjlBOVomR7GbPLIUYrBQ=; fh=64E24D7BPGG+UJdUNMRDQsRRO700i+iSQ5zwJIVLvl0=; b=ns1RYnMcd1JIqtLdbzxAEQBPGPeWD6TkZBm6JRYWCS6QclvbOZe7WwvBTs3Y/sBITo f0dxO8wnVciexsQtLEeoidyJsfSMFbWs05YAzIhz8aKzhUm2j8mkVuEkLZPf+zaKJJV3 C7fzH1nfZhOUzl1VizqUeaWrRuW3eAa0InLRbezYrCL3zd2RS76ieUqrF8XmhuXkg0EH fZZkRYo8XqwKdRh5OPm7jOxNqeD2pccJAormVnRaXPEHzjIDZrWGdC5kkfmN+JR8sG60 CvZjkLM5+Gx1Ah9YRePtR+yD/cCKnIOZFvSz167A7FEygUb9pptBVJJbBdyKV0zIxcnr Cf7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fCU4Ukbb; 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-138977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138977-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 p1-20020a170902c70100b001e098ad43d7si10423772plp.216.2024.04.10.09.32.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 09:32:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138977-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=fCU4Ukbb; 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-138977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138977-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 46113283D94 for ; Wed, 10 Apr 2024 16:32:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF68117A930; Wed, 10 Apr 2024 16:31:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fCU4Ukbb" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 19C6E53361 for ; Wed, 10 Apr 2024 16:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712766712; cv=none; b=Kr+kfvwHjZeSHLT2flXjl9iN98KrCTkR4TJ8HN0Zfd7omdOp/6x1GbkIs9GaL4QTyL1uk2klDgH1AFh1eZFM10y9D5wH8G2wnC0utmwJab5KRHEqNFz8Vn78JxogEWFuE8lC8mKrNZBLwsNMrzH1uHaR2asrGfPnTJndURBJBSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712766712; c=relaxed/simple; bh=TigeXYTAfCmO9vFIAuFVr6YjJ9ckn95Lu8aZKR1UJco=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=ATSr+lQ1muXdt6DKaA8onePCpwU4Hg1DYdfkDlBW1o18335F+szymf5JczPT2m/TWniNHAueFdVlLZIf30zMK/1l2mA7D/utz3gys2o+YDA/9G0Pu/aoJb8AFenuVVMuQWglPPubhS10zrzm5R2Q380gzeTs5QL7Ib52uFhw2CA= 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=fCU4Ukbb; arc=none smtp.client-ip=209.85.167.54 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-f54.google.com with SMTP id 2adb3069b0e04-516c97ddcd1so8391793e87.2 for ; Wed, 10 Apr 2024 09:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712766709; x=1713371509; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=9vNeFQNktlIA8w3wmg3JURuXjlBOVomR7GbPLIUYrBQ=; b=fCU4UkbbngUM4GeaDoFs9UL4ocF1k3ga1FimF3yo4B5DND3bRiUyTr/w2tNaKKq6qp sE3oLXpLESda7rUOX+07spCRbtNGwLyyYF2+hCs6XmDfCrvS9vCeJj+G73K7ap2EKF9K keVcWDrdU4DZ0M8qGRbum5QrKDGzmFXObFnznoRIP09IB+2TaX06ujZDitVkJ9PiJ1hA LnQY6hRiSuqsqIJtlmQ4rx6QD/rfCcpff5PMfBYdYvVXiU7bUTT8spMaNpuhzJmR6Es1 je6cF6U2D3HfR5lNpelYxGP/tDSI4lvsNAqaQsjb6G6dBqcJBJjb0MxKUuqtoDX+BhtA IGsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712766709; x=1713371509; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=9vNeFQNktlIA8w3wmg3JURuXjlBOVomR7GbPLIUYrBQ=; b=v+Jyb2bm28aiQz583HgR1pekHtUaOp4CqB8Iiznsa4HOAtuKvOsPPZUOMO+5WqrzA+ bOVIgLr07d7eSL9TEjImLws3S+kyze1l4aCxRB1ElswdBN7kp8F5poPekzz5IT5/H9Nh /1cXKKwToBTbWUFpwbKD6/3814p4ijwX9Z8dcjg+LlIwBuZmzNmodkRGkLquUceKQvlr x5c5W4xI55mQ0hKpwRNrXbkz3XF2Gl9YIcP5XbZz8GKzc619eU/GzJnqk8HztpAWy9WD LPK4/V2MST/EQJDtr8k4ahvBHJhuR47I/SNw/I/28jIbsKD8sNMpT9pK6/3XJwGe9Wgk +1FA== X-Forwarded-Encrypted: i=1; AJvYcCXOS5nmMLn7fVAKOmN/h6azDNyhQ4mnKeG90sQ6bRcSLRkyT7g+FzMY+Z+YgnsITyzOg/U4Trrwlrqw5/+VZ4cUvAj2icmqggcw7n/W X-Gm-Message-State: AOJu0Yxcnp0Yv7vUTA+0UC0ku67UtuhHQqh6GmtXKdy1lyjEB6Qza8ch ehCbT8HUpKhGOYsJsa0gDLu1GD/mXLymTu8J+qsRuTlLup3tL06m0aTWeaw1wwA= X-Received: by 2002:a19:9158:0:b0:513:82e2:4193 with SMTP id y24-20020a199158000000b0051382e24193mr2227762lfj.10.1712766709005; Wed, 10 Apr 2024 09:31:49 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:760d:c2fa:a66b:fed3? ([2a01:e0a:982:cbb0:760d:c2fa:a66b:fed3]) by smtp.gmail.com with ESMTPSA id h8-20020a05600c350800b0041488978873sm2705892wmq.44.2024.04.10.09.31.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Apr 2024 09:31:48 -0700 (PDT) Message-ID: Date: Wed, 10 Apr 2024 18:31:47 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 4/4] clk: qcom: dispcc-sm8650: fix DisplayPort clocks To: Dmitry Baryshkov , Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240408-dispcc-dp-clocks-v1-0-f9e44902c28d@linaro.org> <20240408-dispcc-dp-clocks-v1-4-f9e44902c28d@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6G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aro In-Reply-To: <20240408-dispcc-dp-clocks-v1-4-f9e44902c28d@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 08/04/2024 13:47, Dmitry Baryshkov wrote: > On SM8650 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: 9e939f008338 ("clk: qcom: add the SM8650 Display Clock Controller driver") > Signed-off-by: Dmitry Baryshkov > --- > drivers/clk/qcom/dispcc-sm8650.c | 20 ++++---------------- > 1 file changed, 4 insertions(+), 16 deletions(-) > > diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c > index 9539db0d9114..3eb64bcad487 100644 > --- a/drivers/clk/qcom/dispcc-sm8650.c > +++ b/drivers/clk/qcom/dispcc-sm8650.c > @@ -343,26 +343,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 = 0x8170, > .mnd_width = 0, > .hid_width = 5, > .parent_map = disp_cc_parent_map_7, > - .freq_tbl = ftbl_disp_cc_mdss_dptx0_link_clk_src, > .clkr.hw.init = &(const struct clk_init_data) { > .name = "disp_cc_mdss_dptx0_link_clk_src", > .parent_data = disp_cc_parent_data_7, > .num_parents = ARRAY_SIZE(disp_cc_parent_data_7), > .flags = CLK_SET_RATE_PARENT, > - .ops = &clk_rcg2_ops, > + .ops = &clk_byte2_ops, > }, > }; > > @@ -416,13 +407,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 = &(const 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, > }, > }; > > @@ -476,13 +466,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 = &(const 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, > }, > }; > > @@ -536,13 +525,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 = &(const 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, > }, > }; > > Reviewed-by: Neil Armstrong Tested-by: Neil Armstrong # on SM8650-HDK