Message ID | 20230412-topic-qcm_dispcc-v1-1-bf2989a75ae4@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp389413vqo; Wed, 12 Apr 2023 07:58:20 -0700 (PDT) X-Google-Smtp-Source: AKy350ZpACCn+mgYKx/IUUexpL7bW8lv0J3JfrmfXOj+Gi/8rSMjS9qGFKI3rLsPd0WMg0B/A07r X-Received: by 2002:a05:6402:489:b0:4fa:315a:cb55 with SMTP id k9-20020a056402048900b004fa315acb55mr14488000edv.21.1681311500243; Wed, 12 Apr 2023 07:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681311500; cv=none; d=google.com; s=arc-20160816; b=dxpemS+pzPda71AimueIrHVX25B2B6fwKuVPzrsDV0Rn6iI6nRvA7kJa9ZMyZtIInV XWnzdUoavyQ4RPfYYgau+kKWoZRoOIr/htNYkM0TS1KLwpg1nQ/t8c6G/BcFr5dkCFhU vU+BSF6kUWh/bqCaN97aT2VTRCrSHv2D24cZAw+kwd2AQ7BzRy0qbD5lqD1dACF57VW+ UWH3xm0YwbXWDCoSGvaFkXl9kLEjpuggppTS2i+j92Idz8ZYDIDSe2zz6fQLSLFfXNch ULjRWu/QgUtyCtW798DZoe/6x1m7MxH86u509ykTG6j6NwS4kRsCfFF25cQDoxL/SY4J rEfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=7UAk5E190wNgEBpxEtcgbtHjnL3P3IqX8QW8cfsP/YM=; b=q438fgtv9TEuWS5dNtCui9pCpPAuJovcohYiXovHpsmh8aOW9x1VhDaI4zz9oBkxXV YMCmdjKfj2vy5dwmCmfhLgBfgS4Cilc0KcdpfG3ZEU1DqngJkElb+G4ubfB+mEHJ5yCz erPL1IqtQ2xlzjr574CRqMpipvxkbA8+xTA9rp3Aqr3UTaNZZS5JXCnL8YgsuQ/dKkww JrzU59i0djUdpQU0vPXW2/kPVPaIpvqEGrVh2sYO1b8sevXMHhQ1fGbITXk6rTAB9qyH n3KyM9888OoDHIECj1GECMfYScCS0t1a60F6N6tD3K0UvqZ2AP8CsbUO+u1GDMuTwdSl 8dhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K0ZinGz0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w23-20020a056402129700b00501c4e398fasi13310054edv.142.2023.04.12.07.57.55; Wed, 12 Apr 2023 07:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K0ZinGz0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230218AbjDLOxZ (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Wed, 12 Apr 2023 10:53:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjDLOxR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Apr 2023 10:53:17 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C75335599 for <linux-kernel@vger.kernel.org>; Wed, 12 Apr 2023 07:53:15 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id t20so15038581lfd.5 for <linux-kernel@vger.kernel.org>; Wed, 12 Apr 2023 07:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681311194; x=1683903194; 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=7UAk5E190wNgEBpxEtcgbtHjnL3P3IqX8QW8cfsP/YM=; b=K0ZinGz0TVWTKppVbCaFL0TrOFM6eJ9G0ii4oxQ2NwLz5SHqZCik0NxSgXadZnpMi2 3K3lq9EOgaWnxUdrl93GLhGVdlneb7KHQKl7l8sw9XTOZVrzSjYbZ0TkQR19H21bZn/k QmzKz7Omy9dIYkl69iAMg9Urw4/5fnAcKCLn7kxdUDDHChRh6F3hRb718tzFicULZXfj j4oQZ5NwJI5ROLHIyx2vZtTTC9+iKetvIvIwnN9TJz1/wdPsBWfNDhLT+uDTxxLrPswu vRugK0D1ZHBUt68LKT7swEnaplNSD/KvdG0sg8mGTkO8ujdYtcZyTJ3WfJZCdAiXI7wh te1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681311194; x=1683903194; 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=7UAk5E190wNgEBpxEtcgbtHjnL3P3IqX8QW8cfsP/YM=; b=YVxcSMuu/x65+V1Tyo92ggez3Wl5faXJ4FoY1IYu50dY7SuB+OwrmeAoV6YsDpgdMy Js+Zpq43ixZG2/+qpmaII9YSadQpq5OkB9T7sWbLgcIu0heWq0o6quUN1CV00CFxdRwK bEuYoUD0gJ8csb2FZZB/OLnR3jmveQwyMx4QcxID8IGsk8Yd33Jap1kW90jtjRmL7lG9 CVJEjjE490OXlAxlKX9Cd2bvfhBABxxhiJi4sc8fxz7pqaXtjZxjUrQpG2blkVTKFJcn 1J5ZlEctt6o9zclrqmDfeysV3290kAcznIduIWcvELeU4mh8DTeDSwcsqsSn7KnOQH/o SIpA== X-Gm-Message-State: AAQBX9fsPDE6CSAnaKRXkwilJSW1H4R46gf0kaxjlsgzBK1ZoVlj8MU5 UR5UZtnCm3iEFZsxOFF/MS7Zrg== X-Received: by 2002:ac2:5fc8:0:b0:4e8:3d24:de6f with SMTP id q8-20020ac25fc8000000b004e83d24de6fmr4925749lfg.14.1681311194072; Wed, 12 Apr 2023 07:53:14 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id w5-20020ac24425000000b004e95f1c9e7dsm3015367lfl.78.2023.04.12.07.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 07:53:13 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Wed, 12 Apr 2023 16:53:05 +0200 Subject: [PATCH 1/3] clk: qcom: dispcc-qcm2290: Fix BI_TCXO_AO handling MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230412-topic-qcm_dispcc-v1-1-bf2989a75ae4@linaro.org> References: <20230412-topic-qcm_dispcc-v1-0-bf2989a75ae4@linaro.org> In-Reply-To: <20230412-topic-qcm_dispcc-v1-0-bf2989a75ae4@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Loic Poulain <loic.poulain@linaro.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681311191; l=1283; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ZPPztK/ocj1ol1xQUHYQtAl+y1B8bJFYFayKaHP8l6g=; b=OyLOma9Xj210KuSJleD8Uh6LGCGzZ/Fnkz5r0uMAFN6a/Jv1rf4k524QCcHwwx2PbE76RmR+5qLv VVa4Ax1MA7QazGJWXAfLfpI70g3Ri6Umo0x1m/0NYa7LVQaFhl2b X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762982887390345769?= X-GMAIL-MSGID: =?utf-8?q?1762982887390345769?= |
Series |
QCM2290 dispcc fixups
|
|
Commit Message
Konrad Dybcio
April 12, 2023, 2:53 p.m. UTC
BI_TCXO_AO was previously shoved in under the name of its non-AO
sibling in parent_map_2. Resolve it.
Fixes: cc517ea3333f ("clk: qcom: Add display clock controller driver for QCM2290")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
drivers/clk/qcom/dispcc-qcm2290.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Comments
On Wed, Apr 12, 2023 at 04:53:05PM +0200, Konrad Dybcio wrote: > BI_TCXO_AO was previously shoved in under the name of its non-AO > sibling in parent_map_2. Resolve it. > > Fixes: cc517ea3333f ("clk: qcom: Add display clock controller driver for QCM2290") > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > drivers/clk/qcom/dispcc-qcm2290.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/qcom/dispcc-qcm2290.c b/drivers/clk/qcom/dispcc-qcm2290.c > index cbb5f1ec6a54..0f516c72e624 100644 > --- a/drivers/clk/qcom/dispcc-qcm2290.c > +++ b/drivers/clk/qcom/dispcc-qcm2290.c > @@ -24,6 +24,7 @@ > > enum { > P_BI_TCXO, > + P_BI_TCXO_AO, > P_DISP_CC_PLL0_OUT_MAIN, > P_DSI0_PHY_PLL_OUT_BYTECLK, > P_DSI0_PHY_PLL_OUT_DSICLK, > @@ -83,7 +84,7 @@ static const struct clk_parent_data disp_cc_parent_data_1[] = { > }; > > static const struct parent_map disp_cc_parent_map_2[] = { > - { P_BI_TCXO, 0 }, > + { P_BI_TCXO_AO, 0 }, I think the commit message fails to explain why the parent clock for the AHB clocks should be active-only. Are you sure, can you please elaborate? Thanks, Bjorn > { P_GPLL0_OUT_MAIN, 4 }, > }; > > @@ -154,7 +155,7 @@ static struct clk_regmap_div disp_cc_mdss_byte0_div_clk_src = { > }; > > static const struct freq_tbl ftbl_disp_cc_mdss_ahb_clk_src[] = { > - F(19200000, P_BI_TCXO, 1, 0, 0), > + F(19200000, P_BI_TCXO_AO, 1, 0, 0), > F(37500000, P_GPLL0_OUT_MAIN, 8, 0, 0), > F(75000000, P_GPLL0_OUT_MAIN, 4, 0, 0), > { } > > -- > 2.40.0 >
diff --git a/drivers/clk/qcom/dispcc-qcm2290.c b/drivers/clk/qcom/dispcc-qcm2290.c index cbb5f1ec6a54..0f516c72e624 100644 --- a/drivers/clk/qcom/dispcc-qcm2290.c +++ b/drivers/clk/qcom/dispcc-qcm2290.c @@ -24,6 +24,7 @@ enum { P_BI_TCXO, + P_BI_TCXO_AO, P_DISP_CC_PLL0_OUT_MAIN, P_DSI0_PHY_PLL_OUT_BYTECLK, P_DSI0_PHY_PLL_OUT_DSICLK, @@ -83,7 +84,7 @@ static const struct clk_parent_data disp_cc_parent_data_1[] = { }; static const struct parent_map disp_cc_parent_map_2[] = { - { P_BI_TCXO, 0 }, + { P_BI_TCXO_AO, 0 }, { P_GPLL0_OUT_MAIN, 4 }, }; @@ -154,7 +155,7 @@ static struct clk_regmap_div disp_cc_mdss_byte0_div_clk_src = { }; static const struct freq_tbl ftbl_disp_cc_mdss_ahb_clk_src[] = { - F(19200000, P_BI_TCXO, 1, 0, 0), + F(19200000, P_BI_TCXO_AO, 1, 0, 0), F(37500000, P_GPLL0_OUT_MAIN, 8, 0, 0), F(75000000, P_GPLL0_OUT_MAIN, 4, 0, 0), { }