Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75FE9C433F5 for ; Mon, 2 May 2022 22:02:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B8D610F035; Mon, 2 May 2022 22:02:46 +0000 (UTC) Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3DEDD10F035 for ; Mon, 2 May 2022 22:02:45 +0000 (UTC) Received: by mail-lj1-x22b.google.com with SMTP id q185so19991572ljb.5 for ; Mon, 02 May 2022 15:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=DRg345qlmHZAutVgm3n8hsU+OaMYpjvZXMdM8MOZnjo=; b=ga3FaG/X/ohjFMc4Jujlc2ehmmBpUcz2YJkY3fsJ2gyyb7p5hEbT98qbNLFwL8OYp4 RE6Q1ZWxI2k5jUmRfvnLsWAn7XmAo9br8fsMyjpckUVbYialm6bA9iuxQWNywMB7IW4A z6GinRfsS7w52iylRW23sd/cvPHWm86Fsk7OSbkRmZVkiXJRHs2irI+h2hj+Fn34QgDl LK2WF+scf4icvuUIe7tYyegROsLIw4YfQA7k1u8vFEctfDHb6sORERCBpcVrVT/qS35d LY9E0FucDPXtrMsCmaPWF7c6QmcpFnOmAHi4174dVN5CXEcQDdPIrdchKzV8w4Ca7leK 3qiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=DRg345qlmHZAutVgm3n8hsU+OaMYpjvZXMdM8MOZnjo=; b=Ymq1EzPl7Ts07Hc36ULHr+dz8jkLez2BhcKjuskeO6hn3/9arE+twTDMYzps9Av5IT pGKROtXFikLRnQ2DxeZLnzggtTMp/9lvJepAiagtRJTtNPycWdczmKNLFxogCjDJLDYc JL7DHL6W+TuRrP6ztwmm7dCmYWGgRWAwjfZNfeXh/l7qHFM0kyoVoW4TWAvwnOXHAOzR rdW4P4tpFyBLNZ+887CGgccn0uU/Ubckx1vzfoGVFGvv7/6H10qtdAxlf9RAUtzOIgJq 5Zdt3LhHKCXJJU5R0jYqOWMasrrq1hlOCK/xN4SaneZPpWZ2nRSCV104eKZYYoqm2k6c Ityg== X-Gm-Message-State: AOAM530MWpgKt1yjnojHzp99il3R8DY4+AYvRactktfrfWbZobpd/txm ta5xNQHNMJMvy33A6PXiSN76fw== X-Google-Smtp-Source: ABdhPJy6WNB6x1qrzJ4sPQwweY1VOjh4o2BX1ltnVAoPkxi15Di0ZVsfPq77IUaAOO6EguhKxxYqzQ== X-Received: by 2002:a2e:8317:0:b0:24f:1578:2872 with SMTP id a23-20020a2e8317000000b0024f15782872mr8548271ljh.129.1651528963403; Mon, 02 May 2022 15:02:43 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id g9-20020ac25389000000b0047255d21127sm803876lfh.86.2022.05.02.15.02.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 15:02:42 -0700 (PDT) Message-ID: Date: Tue, 3 May 2022 01:02:42 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] drm/msm/dsi: pll_7nm: remove unsupported dividers for DSI pixel clock Content-Language: en-GB To: Marijn Suijten , Stephen Boyd References: <20220501195620.4135080-1-dmitry.baryshkov@linaro.org> <20220502214235.s5plebunh4ttjhge@SoMainline.org> From: Dmitry Baryshkov In-Reply-To: <20220502214235.s5plebunh4ttjhge@SoMainline.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: freedreno@lists.freedesktop.org, David Airlie , linux-arm-msm@vger.kernel.org, Abhinav Kumar , dri-devel@lists.freedesktop.org, Bjorn Andersson , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 03/05/2022 00:42, Marijn Suijten wrote: > On 2022-05-02 13:47:51, Stephen Boyd wrote: >> Quoting Dmitry Baryshkov (2022-05-01 12:56:20) >>> Remove dividers that are not recommended for DSI DPHY mode when setting >> >> Is "DPHY" intentional or just "PHY" should be here? >> >>> up the clock tree for the DSI pixel clock. >>> >>> Signed-off-by: Dmitry Baryshkov >>> --- >> >> Reviewed-by: Stephen Boyd >> >>> drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 10 ++++------ >>> 1 file changed, 4 insertions(+), 6 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c >>> index 6e506feb111f..66ed1919a1db 100644 >>> --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c >>> +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c >>> @@ -687,15 +687,13 @@ static int pll_7nm_register(struct dsi_pll_7nm *pll_7nm, struct clk_hw **provide >>> snprintf(clk_name, 32, "dsi%d_pclk_mux", pll_7nm->phy->id); >>> snprintf(parent, 32, "dsi%d_pll_bit_clk", pll_7nm->phy->id); >>> snprintf(parent2, 32, "dsi%d_pll_by_2_bit_clk", pll_7nm->phy->id); >>> - snprintf(parent3, 32, "dsi%d_pll_out_div_clk", pll_7nm->phy->id); >>> - snprintf(parent4, 32, "dsi%d_pll_post_out_div_clk", pll_7nm->phy->id); >>> >>> hw = devm_clk_hw_register_mux(dev, clk_name, >>> ((const char *[]){ >>> - parent, parent2, parent3, parent4 >>> - }), 4, 0, pll_7nm->phy->base + >>> + parent, parent2, >>> + }), 2, 0, pll_7nm->phy->base + >>> REG_DSI_7nm_PHY_CMN_CLK_CFG1, >>> - 0, 2, 0, NULL); >>> + 0, 1, 0, NULL); >> >> Can you followup with a patch to move to clk_parent_data instead of >> strings? > > Dmitry and I discussed this a while ago, and I actually have patches in > progress converting this. Dmitry, if you haven't started on the > conversion yet, perhaps it's efficient if I respin my efforts and submit > them soon? Yes, please. I'm under the pile of other things. Your patches will be appreciated. You don't have to convert all PHYs at once. -- With best wishes Dmitry