devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Andy Gross <agross@kernel.org>,
	Stephen Boyd <swboyd@chromium.org>,
	Michael Turquette <mturquette@baylibre.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Taniya Das <quic_tdas@quicinc.com>,
	linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v1 2/4] clk: qcom: Add support for Display Clock Controller on SM8450
Date: Wed, 6 Jul 2022 15:40:38 -0500	[thread overview]
Message-ID: <YsXzRhcAKgsVts9M@builder.lan> (raw)
In-Reply-To: <20220623114737.247703-3-dmitry.baryshkov@linaro.org>

On Thu 23 Jun 06:47 CDT 2022, Dmitry Baryshkov wrote:
> diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig
> index bc4dcf356d82..f409b891fce4 100644
> --- a/drivers/clk/qcom/Kconfig
> +++ b/drivers/clk/qcom/Kconfig
> @@ -635,6 +635,15 @@ config SM_DISPCC_6350
>  	  Say Y if you want to support display devices and functionality such as
>  	  splash screen.
>  
> +config SM_DISPCC_8450
> +	tristate "SM8450 Display Clock Controller"
> +	depends on SM_GCC_8450
> +	help
> +	  Support for the display clock controller on Qualcomm Technologies, Inc
> +	  SM8250 devices.

s/2/4/

> +	  Say Y if you want to support display devices and functionality such as
> +	  splash screen.
> +
[..]
> diff --git a/drivers/clk/qcom/dispcc-sm8450.c b/drivers/clk/qcom/dispcc-sm8450.c
[..]
> +static struct clk_alpha_pll disp_cc_pll0 = {
> +	.offset = 0x0,
> +	.vco_table = lucid_evo_vco,
> +	.num_vco = ARRAY_SIZE(lucid_evo_vco),
> +	.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_LUCID_EVO],
> +	.clkr = {
> +		.hw.init = &(struct clk_init_data){
> +			.name = "disp_cc_pll0",
> +			.parent_data = &(const struct clk_parent_data){
> +				.fw_name = "bi_tcxo",

Can we please have this transitioned to using .index as in the other new
clock drivers?

Also, you have a bi_tcxo clk_parent_data below, how about using that?

And lastly, could I please have a space inbetween ) and {?

> +			},
> +			.num_parents = 1,
> +			.ops = &clk_alpha_pll_reset_lucid_evo_ops,
> +		},
> +	},
> +};
> +
[..]
> +static int __init disp_cc_sm8450_init(void)
> +{
> +	return platform_driver_register(&disp_cc_sm8450_driver);
> +}
> +subsys_initcall(disp_cc_sm8450_init);
> +
> +static void __exit disp_cc_sm8450_exit(void)
> +{
> +	platform_driver_unregister(&disp_cc_sm8450_driver);
> +}
> +module_exit(disp_cc_sm8450_exit);

You should be able to module_platform_driver() this instead.

> +
> +MODULE_DESCRIPTION("QTI DISP_CC WAIPIO Driver");

While not secret, please update this to use SM8450 and perhaps a more
human readable form?

> +MODULE_LICENSE("GPL v2");

Please change this to MODULE_LICENSE("GPL")

Regards,
Bjorn

  parent reply	other threads:[~2022-07-06 20:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23 11:47 [PATCH v1 0/4] clk: qcom: add SM8450 Display clock controller support Dmitry Baryshkov
2022-06-23 11:47 ` [PATCH v1 1/4] dt-bindings: clock: qcom: add bindings for dispcc on SM8450 Dmitry Baryshkov
2022-06-24 15:59   ` Krzysztof Kozlowski
2022-06-24 17:26   ` Rob Herring
2022-07-06 20:45   ` Bjorn Andersson
2022-07-14 12:55     ` Dmitry Baryshkov
2022-06-23 11:47 ` [PATCH v1 2/4] clk: qcom: Add support for Display Clock Controller " Dmitry Baryshkov
2022-06-30 21:52   ` Rob Herring
2022-07-06 20:40   ` Bjorn Andersson [this message]
2022-06-23 11:47 ` [PATCH v1 3/4] clk: qcom: alpha-pll: add support for power off mode for lucid evo PLL Dmitry Baryshkov
2022-06-23 11:47 ` [PATCH v1 4/4] arm64: dts: qcom: sm8450: add display clock controller Dmitry Baryshkov

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=YsXzRhcAKgsVts9M@builder.lan \
    --to=bjorn.andersson@linaro.org \
    --cc=agross@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=quic_tdas@quicinc.com \
    --cc=robh+dt@kernel.org \
    --cc=swboyd@chromium.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).