From: Stephen Boyd <sboyd@kernel.org>
To: Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Jassi Brar <jassisinghbrar@gmail.com>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Michael Turquette <mturquette@baylibre.com>,
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
Subject: Re: [PATCH v5 7/7] clk: qcom: add the driver for the MSM8996 APCS clocks
Date: Fri, 27 Jan 2023 13:04:03 -0800 [thread overview]
Message-ID: <91341053a892fa3ac5e7f5b719ad870a.sboyd@kernel.org> (raw)
In-Reply-To: <20230126230319.3977109-8-dmitry.baryshkov@linaro.org>
Quoting Dmitry Baryshkov (2023-01-26 15:03:19)
> diff --git a/drivers/clk/qcom/apcs-msm8996.c b/drivers/clk/qcom/apcs-msm8996.c
> new file mode 100644
> index 000000000000..48d22572b6ae
> --- /dev/null
> +++ b/drivers/clk/qcom/apcs-msm8996.c
> @@ -0,0 +1,88 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Qualcomm APCS clock controller driver
> + *
[...]
> +
> + /*
> + * This clock is used during CPU cluster setup while setting up CPU PLLs.
> + * Add hardware mandated delay to make sure that the sys_apcs_aux clock
> + * is stable (after setting the divider) before continuing
> + * bootstrapping to keep CPUs from ending up in a weird state.
> + */
> + udelay(5);
> +
> + /*
> + * As this clocks is a parent of the CPU cluster clocks and is actually
> + * used as a parent during CPU clocks setup, we want for it to gegister
s/gegister/register/
> + * as early as possible, without letting fw_devlink to delay probing of
> + * either of the drivers.
Ok, good to know fw_devlink is the problem in this case.
> + *
> + * The sys_apcs_aux is a child (divider) of gpll0, but we register it
> + * as a fixed rate clock instead to ease bootstrapping procedure. By
> + * doing this we make sure that CPU cluster clocks are able to be setup
> + * early during the boot process (as it is recommended by Qualcomm).
> + */
> + hw = devm_clk_hw_register_fixed_rate(dev, "sys_apcs_aux", NULL, 0, 300000000);
> + if (IS_ERR(hw))
> + return PTR_ERR(hw);
> +
next prev parent reply other threads:[~2023-01-27 21:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 23:03 [PATCH v5 0/7] clk: qcom: msm8996: add APCS clock driver Dmitry Baryshkov
2023-01-26 23:03 ` [PATCH v5 1/7] dt-bindings: mailbox: qcom: add SDX55 compatible Dmitry Baryshkov
2023-01-26 23:03 ` [PATCH v5 2/7] dt-bindings: mailbox: qcom: enable syscon compatible for msm8976 Dmitry Baryshkov
2023-01-26 23:03 ` [PATCH v5 3/7] dt-bindings: mailbox: qcom: correct the list of platforms using clocks Dmitry Baryshkov
2023-01-26 23:03 ` [PATCH v5 4/7] dt-bindings: mailbox: qcom: add missing platforms to conditional clauses Dmitry Baryshkov
2023-01-26 23:03 ` [PATCH v5 5/7] dt-bindings: mailbox: qcom: add #clock-cells to msm8996 example Dmitry Baryshkov
2023-01-26 23:03 ` [PATCH v5 6/7] mailbox: qcom-apcs-ipc: enable APCS clock device for MSM8996 Dmitry Baryshkov
2023-01-26 23:03 ` [PATCH v5 7/7] clk: qcom: add the driver for the MSM8996 APCS clocks Dmitry Baryshkov
2023-01-26 23:32 ` Konrad Dybcio
2023-01-27 21:04 ` Stephen Boyd [this message]
2023-01-27 18:15 ` [PATCH v5 0/7] clk: qcom: msm8996: add APCS clock driver Dmitry Baryshkov
2023-02-05 4:15 ` Jassi Brar
2023-02-09 4:22 ` (subset) " Bjorn Andersson
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=91341053a892fa3ac5e7f5b719ad870a.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=jassisinghbrar@gmail.com \
--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=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