From: Stephen Boyd <sboyd@kernel.org>
To: Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Michael Turquette <mturquette@baylibre.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Rob Herring <robh+dt@kernel.org>,
Taniya Das <quic_tdas@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Neil Armstrong <neil.armstrong@linaro.org>
Subject: Re: [PATCH 08/10] clk: qcom: add the SM8650 Display Clock Controller driver
Date: Wed, 25 Oct 2023 14:45:57 -0700 [thread overview]
Message-ID: <a939ef1a4c2cad763fe484cc943f44d5.sboyd@kernel.org> (raw)
In-Reply-To: <20231025-topic-sm8650-upstream-clocks-v1-8-c89b59594caf@linaro.org>
Quoting Neil Armstrong (2023-10-25 00:32:45)
> diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig
> index c04b6526f4f3..5bf25e8d033c 100644
> --- a/drivers/clk/qcom/Kconfig
> +++ b/drivers/clk/qcom/Kconfig
> @@ -842,6 +842,15 @@ config SM_DISPCC_8550
> Say Y if you want to support display devices and functionality such as
> splash screen.
>
> +config SM_DISPCC_8650
> + tristate "SM8650 Display Clock Controller"
> + depends on SM_GCC_8650
selects?
We use selects instead of depends so that the driver can be built-in or
modular regardless of parent clks that provide clks to this device.
Orphan clk handling resolves issues with the driver registering clks
before parents. And with fw_devlink the driver isn't even attempted to
probe before the GCC driver is probed so there's no build dependency
between these drivers.
> + help
> + Support for the display clock controller on Qualcomm Technologies, Inc
> + SM8650 devices.
> + Say Y if you want to support display devices and functionality such as
> + splash screen.
> +
> config SM_GCC_4450
> tristate "SM4450 Global Clock Controller"
> depends on ARM64 || COMPILE_TEST
> diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c
> new file mode 100644
> index 000000000000..7cb91306e895
> --- /dev/null
> +++ b/drivers/clk/qcom/dispcc-sm8650.c
> @@ -0,0 +1,1806 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * Copyright (c) 2021, The Linux Foundation. All rights reserved.
> + * Copyright (c) 2023, Linaro Ltd.
> + */
> +
> +#include <linux/clk.h>
Is this include used?
> +#include <linux/clk-provider.h>
> +#include <linux/err.h>
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +#include <linux/of_device.h>
Is this mod_devicetable.h?
> +#include <linux/of.h>
Is this include used?
> +#include <linux/regmap.h>
> +#include <linux/pm_runtime.h>
> +
> +#include <dt-bindings/clock/qcom,sm8650-dispcc.h>
> +
> +#include "common.h"
> +#include "clk-alpha-pll.h"
> +#include "clk-branch.h"
> +#include "clk-pll.h"
> +#include "clk-rcg.h"
> +#include "clk-regmap.h"
> +#include "clk-regmap-divider.h"
> +#include "clk-regmap-mux.h"
Is this include used?
> +#include "reset.h"
> +#include "gdsc.h"
> +
next prev parent reply other threads:[~2023-10-25 21:46 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-25 7:32 [PATCH 00/10] clk: qcom: Introduce clocks drivers for SM8650 Neil Armstrong
2023-10-25 7:32 ` [PATCH 01/10] dt-bindings: clock: qcom: document the SM8650 TCSR Clock Controller Neil Armstrong
2023-10-27 7:24 ` Krzysztof Kozlowski
2023-10-25 7:32 ` [PATCH 02/10] dt-bindings: clock: qcom: document the SM8650 General " Neil Armstrong
2023-10-27 7:25 ` Krzysztof Kozlowski
2023-10-25 7:32 ` [PATCH 03/10] dt-bindings: clock: qcom: document the SM8650 Display " Neil Armstrong
2023-10-25 14:47 ` Rob Herring
2023-10-25 19:49 ` Rob Herring
2023-10-25 19:40 ` Rob Herring
2023-10-27 7:28 ` Krzysztof Kozlowski
2023-10-25 7:32 ` [PATCH 04/10] dt-bindings: clock: qcom: document the SM8650 GPU " Neil Armstrong
2023-10-25 19:40 ` Rob Herring
2023-10-25 7:32 ` [PATCH 05/10] dt-bindings: clock: qcom-rpmhcc: document the SM8650 RPMH " Neil Armstrong
2023-10-25 19:49 ` Rob Herring
2023-10-25 7:32 ` [PATCH 07/10] clk: qcom: add the SM8650 TCSR Clock Controller driver Neil Armstrong
2023-10-25 8:38 ` Dmitry Baryshkov
2023-10-25 8:43 ` Konrad Dybcio
2023-10-25 11:56 ` Neil Armstrong
2023-10-25 7:32 ` [PATCH 08/10] clk: qcom: add the SM8650 Display " Neil Armstrong
2023-10-25 8:45 ` Konrad Dybcio
2023-10-26 12:02 ` Neil Armstrong
2023-10-25 21:45 ` Stephen Boyd [this message]
2023-10-26 12:27 ` Neil Armstrong
2023-10-25 7:32 ` [PATCH 09/10] clk: qcom: add the SM8650 GPU " Neil Armstrong
2023-10-25 8:46 ` Konrad Dybcio
2023-10-25 7:32 ` [PATCH 10/10] clk: qcom: rpmh: add clocks for SM8650 Neil Armstrong
2023-10-25 8:45 ` Dmitry Baryshkov
2023-10-25 8:47 ` Konrad Dybcio
2023-10-25 12:00 ` Neil Armstrong
2023-10-25 21:47 ` Stephen Boyd
2023-10-26 12:17 ` Neil Armstrong
[not found] ` <20231025-topic-sm8650-upstream-clocks-v1-6-c89b59594caf@linaro.org>
2023-10-25 8:41 ` [PATCH 06/10] clk: qcom: add the SM8650 Global Clock Controller driver Konrad Dybcio
2023-10-26 11:51 ` Neil Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a939ef1a4c2cad763fe484cc943f44d5.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=quic_tdas@quicinc.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).