Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp282540lqj; Wed, 10 Apr 2024 10:12:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+g1zV1H7pFDVI7DOOieZPmLETnJNAAXq3qqvpumNzLZZTnbOPyzz7jSXmRHDjQhmpGn3581MOoiOnuK6yia/zbvB4vLIatuwKbte5jw== X-Google-Smtp-Source: AGHT+IEwy7a0SXBrVZIvwSE6cSau+VoIfXgVIbMah9mPlw7eeFghTgZWN3XY51hqqJYo2tqmao1t X-Received: by 2002:ac2:4951:0:b0:515:d4c8:942f with SMTP id o17-20020ac24951000000b00515d4c8942fmr2298977lfi.58.1712769129065; Wed, 10 Apr 2024 10:12:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712769129; cv=pass; d=google.com; s=arc-20160816; b=r30CYlA8Pfwex2RiIPPmIBT+mwc2sg4KE++JIs6ubt9IgsC1pDs+3Iqq3CvLWk/WlY S7y6dv8Lqbn6CYZTyUY7bP1uLnQge2zLN1qOUHeY2LPWi7jKD09Ke9Yipi/JmmWls6Fv 96k9n2W7YjDEkJZlJrZ8U5VrxQSKuch5O6iHdODy73Rbuse0oPUPE/OBAVg6KfLaLHEa eWpMdzy1gQ5BnhnkKeVANpJHW8jqNl4VOzx3D0XNkXeTHndWrxnO5jbMgHtLldUNDTpg 6iR7ZIGDk7/52rwZxW9ZByR4USbB4dpLMS/qQ5rVuJTFTQf0bmgpUHD2zWJdfb4mqLPF DaBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=krVqdNJGaSWnCm1fFe2sDo2PvBuE9P/OvcdLjateS3M=; fh=GSCYs6JgEsnvdM71rPWH1+E/aW0UGP+tnheixNaP/70=; b=ci5NTllWB7wMtKf7aNAXFzA5Euo+JHDpo/wrpAVMhMATGEGpWahw4b69fvc03P6ZxY mZzKmnErbPJvRrqUif5sbraspMLI1aYSoM40fkyskNWK9S6tvjVRHdC81porR599u7PB fEoYGXBcSXZ9esmo01mRu36SOLDfmjyLx5YBfwZAgplZPMktauNj7gn3MlKCpZ+glwBj uJMnNj8zb2ij0wkuwzn6hEIJTGxS4V/DV4tF1Sfw5TdBMerf5PzvzdzRRTqXJCPuyOEl zAW6s76sXuzkRRGA/JcXyRBIGp/vC4S4g8afq5JlVxSpALahmm0kWROn0efwicPl1AcN 5Ohw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wUKWwJyL; 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-139050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w5-20020a056402268500b0056c3783c709si6251732edd.292.2024.04.10.10.12.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:12:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wUKWwJyL; 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-139050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139050-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9C2571F22931 for ; Wed, 10 Apr 2024 17:12:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62AD517BB10; Wed, 10 Apr 2024 17:11:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wUKWwJyL" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (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 D23AE17B513 for ; Wed, 10 Apr 2024 17:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712769118; cv=none; b=ZkfduJTLJrkAIUU29qvMWsktN2lo/KOFGtSPXh51Ph8ErKBMiTF+JUodGR3RLCL/36XpYPK1BOXSf90xl2l/+oohJQD/9wjkTpkgxkNJ3k4wMqe1MnvvRnX2/ilrbbCtGFP905BSBFcuDRhw/OzjkqxxTLJews4Nn3q3wuJkA+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712769118; c=relaxed/simple; bh=i2MKukkSWItj1fsVHmkUoM7qU4Ft83lpcnaP3ZJDOlU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DrDGBMkn3PZ7EJdqKLZggiG9q+7rRuiDhXEASPwiLzjYTdaVj7ZP3Lzj+EBiC9HIolI5sN9l4c+Ld9qUhXjwrajRM3LVN2euO2toplzAThoGNZ5I6RwXF1fC+X8olOK6aLPuSa4M5DLEK9qGrkFHCVlcD7EqK08I08UvGxeZdJU= 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=wUKWwJyL; arc=none smtp.client-ip=209.85.219.178 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-yb1-f178.google.com with SMTP id 3f1490d57ef6-ddda842c399so7225522276.3 for ; Wed, 10 Apr 2024 10:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712769115; x=1713373915; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=krVqdNJGaSWnCm1fFe2sDo2PvBuE9P/OvcdLjateS3M=; b=wUKWwJyL8ias0pJ1hygAN5aN1GfA8sapG2G0EF9LqEw8mPCbDYK19qkNUsTgJUVsJE S1GgXkf89dBuLn/wJ6yy/7ZFUBPfrzzg+iwoDjT6qEzU4YWBED4UnjgczQj7CrYtTA3n 7Ddywj7BgFdnz8nOmnQ5D0ciebF1n7Y2zyDCSYW/l9Ocdi+O/Sv8uIzYkBy6VOR6dwID R1qImIVRVJ18dylwpeBq6AeDt0cKrPbJ6C3BpQWRf29GoLJInFnBgyhTyckjsi3ME2+w VObLHxzQBhMR2CBBNrLcCh4bMQKDJSgoEZl3AL8W/0r1DuS+YFyySsjlNfXJs41kkKz8 xqnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712769115; x=1713373915; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=krVqdNJGaSWnCm1fFe2sDo2PvBuE9P/OvcdLjateS3M=; b=MnbmwagEhx0fz1lky6nVfSehs23LYvsPro5Xp8VWfEryMBXXmVjq9es1q/YNJt/5QJ cWP+TJ53JvMbz3QXvkoh+5a3VPnTIPkCdAkACaGzFmDLS+YxyYRDGNlTfwSgnHxpzvir DIYOLQF+WA+Y7vSse8TsmBrA+UEEgiN+JAja+CvctYqjxEeC4o72NSCrCySjI5fx1nGs iaeMKhyKK9TalirQQAN8+DHfdfVD9jQjX9yKR4TsBxlXvUv+/IKlE4jkinyG7vHueIR4 IzQPyViU5UcpYO+/m2JEFKWddX4xUbcW2D8y7SqVPKYVsH6dA6g2nspf1UXrAkopeCxI INiQ== X-Forwarded-Encrypted: i=1; AJvYcCXWQUbKZQOT++s7lhfzxxt1wMaDp1f7gQY0/7yCtZv4G4jMdNOE5CjD+rZlSw59U+Dc4vmoy03Tt8tj8GYGv+WnkfGm64LyxwYHBJwz X-Gm-Message-State: AOJu0Yw7KYaS+0Z83OWWnBuYk5yRZaUO5r/w/U8NVrDAHl1NRu44REA6 ZCYRwr3Z1r5/VEbHuJVkdU/hHkGuDQQz2MjnqRZ2YmKosZK8wfpWNPDcCyczYyIueXnq0kfZRJF RDjFxzSmXSojvGNzsTTNcZEJfEdo6Yd0iBG8CvI1C146YWla+ X-Received: by 2002:a25:ac49:0:b0:dbe:9509:141c with SMTP id r9-20020a25ac49000000b00dbe9509141cmr3796379ybd.30.1712769115576; Wed, 10 Apr 2024 10:11:55 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240408-dispcc-dp-clocks-v1-0-f9e44902c28d@linaro.org> <20240408-dispcc-dp-clocks-v1-1-f9e44902c28d@linaro.org> <57735f4f-aa94-4ca7-8d5b-a95519c5ffd6@linaro.org> In-Reply-To: <57735f4f-aa94-4ca7-8d5b-a95519c5ffd6@linaro.org> From: Dmitry Baryshkov Date: Wed, 10 Apr 2024 20:11:44 +0300 Message-ID: Subject: Re: [PATCH 1/4] clk: qcom: dispcc-sm8450: fix DisplayPort clocks To: neil.armstrong@linaro.org Cc: Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 10 Apr 2024 at 19:27, Neil Armstrong wrote: > > On 08/04/2024 13:47, Dmitry Baryshkov wrote: > > 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, > > }, > > }; > > > > > > > Reviewed-by: Neil Armstrong > > I can't test, but I assume you tested on your HDK8450 That's how I stumbled upon it. I was not able to test other patches in the series, but granted the similarity I assume that they should work in the same way. -- With best wishes Dmitry