From: Alex Elder <elder@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Stephen Boyd <sboyd@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Taniya Das <quic_tdas@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org
Subject: Re: [PATCH 08/16] clk: qcom: smd-rpm: drop the rpm_status_id field
Date: Mon, 5 Dec 2022 15:54:39 -0600 [thread overview]
Message-ID: <a9226554-e592-1d41-d6c7-e343f0e48e97@linaro.org> (raw)
In-Reply-To: <77F879AA-7303-4D3A-AD81-9EC5E9CB5ACC@linaro.org>
On 12/5/22 3:38 PM, Dmitry Baryshkov wrote:
>
>
> On 5 December 2022 20:04:54 GMT+03:00, Alex Elder <elder@linaro.org> wrote:
>> On 12/3/22 11:58 AM, Dmitry Baryshkov wrote:
>>> The rpm_status_id field is a leftover from the non-SMD clocks. It is of
>>> no use for the SMD-RPM clock driver and is always equal to zero. Drop it
>>> completely.
>>>
>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>>
>> Since the macro is defining static structures it's fine, but it
>> could be reassuring to see the rpm_status_id explicitly assigned
>> to 0. (Just a comment, no change needed.) It's a good change.
>
> Excuse me, probably I misunderstood your comment. The field is removed completely, so there is no place for it to be assigned to 0.
No, I missed that last hunk, where the field got eliminated.
Nevermind my comment, thanks for correcting me.
-Alex
>>
>> Reviewed-by: Alex Elder <elder@linaro.org>
>>
>>> ---
>>> drivers/clk/qcom/clk-smd-rpm.c | 20 +++++++-------------
>>> 1 file changed, 7 insertions(+), 13 deletions(-)
>>>
>>> diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c
>>> index e52e0e242294..828cae6769f9 100644
>>> --- a/drivers/clk/qcom/clk-smd-rpm.c
>>> +++ b/drivers/clk/qcom/clk-smd-rpm.c
>>> @@ -25,13 +25,11 @@
>>> #define QCOM_RPM_SMD_KEY_STATE 0x54415453
>>> #define QCOM_RPM_SCALING_ENABLE_ID 0x2
>>> -#define __DEFINE_CLK_SMD_RPM(_platform, _name, _active, type, r_id, stat_id, \
>>> - key) \
>>> +#define __DEFINE_CLK_SMD_RPM(_platform, _name, _active, type, r_id, key) \
>>> static struct clk_smd_rpm _platform##_##_active; \
>>> static struct clk_smd_rpm _platform##_##_name = { \
>>> .rpm_res_type = (type), \
>>> .rpm_clk_id = (r_id), \
>>> - .rpm_status_id = (stat_id), \
>>> .rpm_key = (key), \
>>> .peer = &_platform##_##_active, \
>>> .rate = INT_MAX, \
>>> @@ -48,7 +46,6 @@
>>> static struct clk_smd_rpm _platform##_##_active = { \
>>> .rpm_res_type = (type), \
>>> .rpm_clk_id = (r_id), \
>>> - .rpm_status_id = (stat_id), \
>>> .active_only = true, \
>>> .rpm_key = (key), \
>>> .peer = &_platform##_##_name, \
>>> @@ -65,12 +62,11 @@
>>> }
>>> #define __DEFINE_CLK_SMD_RPM_BRANCH(_platform, _name, _active, type, r_id, \
>>> - stat_id, r, key) \
>>> + r, key) \
>>> static struct clk_smd_rpm _platform##_##_active; \
>>> static struct clk_smd_rpm _platform##_##_name = { \
>>> .rpm_res_type = (type), \
>>> .rpm_clk_id = (r_id), \
>>> - .rpm_status_id = (stat_id), \
>>> .rpm_key = (key), \
>>> .branch = true, \
>>> .peer = &_platform##_##_active, \
>>> @@ -88,7 +84,6 @@
>>> static struct clk_smd_rpm _platform##_##_active = { \
>>> .rpm_res_type = (type), \
>>> .rpm_clk_id = (r_id), \
>>> - .rpm_status_id = (stat_id), \
>>> .active_only = true, \
>>> .rpm_key = (key), \
>>> .branch = true, \
>>> @@ -107,19 +102,19 @@
>>> #define DEFINE_CLK_SMD_RPM(_platform, _name, _active, type, r_id) \
>>> __DEFINE_CLK_SMD_RPM(_platform, _name, _active, type, r_id, \
>>> - 0, QCOM_RPM_SMD_KEY_RATE)
>>> + QCOM_RPM_SMD_KEY_RATE)
>>> #define DEFINE_CLK_SMD_RPM_BRANCH(_platform, _name, _active, type, r_id, r) \
>>> __DEFINE_CLK_SMD_RPM_BRANCH(_platform, _name, _active, type, \
>>> - r_id, 0, r, QCOM_RPM_SMD_KEY_ENABLE)
>>> + r_id, r, QCOM_RPM_SMD_KEY_ENABLE)
>>> #define DEFINE_CLK_SMD_RPM_QDSS(_platform, _name, _active, type, r_id) \
>>> __DEFINE_CLK_SMD_RPM(_platform, _name, _active, type, r_id, \
>>> - 0, QCOM_RPM_SMD_KEY_STATE)
>>> + QCOM_RPM_SMD_KEY_STATE)
>>> #define DEFINE_CLK_SMD_RPM_XO_BUFFER(_platform, _name, _active, r_id, r) \
>>> __DEFINE_CLK_SMD_RPM_BRANCH(_platform, _name, _active, \
>>> - QCOM_SMD_RPM_CLK_BUF_A, r_id, 0, r, \
>>> + QCOM_SMD_RPM_CLK_BUF_A, r_id, r, \
>>> QCOM_RPM_KEY_SOFTWARE_ENABLE)
>>> #define DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(_platform, _name, _active, \
>>> @@ -128,7 +123,7 @@
>>> r_id, r); \
>>> __DEFINE_CLK_SMD_RPM_BRANCH(_platform, _name##_pin, \
>>> _active##_pin, \
>>> - QCOM_SMD_RPM_CLK_BUF_A, r_id, 0, r, \
>>> + QCOM_SMD_RPM_CLK_BUF_A, r_id, r, \
>>> QCOM_RPM_KEY_PIN_CTRL_CLK_BUFFER_ENABLE_KEY)
>>> #define to_clk_smd_rpm(_hw) container_of(_hw, struct clk_smd_rpm, hw)
>>> @@ -137,7 +132,6 @@ struct clk_smd_rpm {
>>> const int rpm_res_type;
>>> const int rpm_key;
>>> const int rpm_clk_id;
>>> - const int rpm_status_id;
>>> const bool active_only;
>>> bool enabled;
>>> bool branch;
>>
>
next prev parent reply other threads:[~2022-12-05 21:56 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-03 17:57 [PATCH 00/16] clk: qcom: smd-rpm: drop platform names Dmitry Baryshkov
2022-12-03 17:57 ` [PATCH 01/16] clk: qcom: smd-rpm: remove duplication between sm6375 and sm6125 clocks Dmitry Baryshkov
2022-12-05 11:13 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-03 17:57 ` [PATCH 02/16] clk: qcom: smd-rpm: enable pin-controlled ln_bb_clk clocks on qcs404 Dmitry Baryshkov
2022-12-05 11:14 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-03 17:57 ` [PATCH 03/16] clk: qcom: smd-rpm: remove duplication between qcs404 and qcm2290 clocks Dmitry Baryshkov
2022-12-05 11:15 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-06 23:18 ` Dmitry Baryshkov
2022-12-03 17:57 ` [PATCH 04/16] clk: qcom: smd-rpm: add missing ln_bb_clkN clocks Dmitry Baryshkov
2022-12-05 11:17 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-06 23:19 ` Dmitry Baryshkov
2022-12-03 17:57 ` [PATCH 05/16] clk: qcom: smd-rpm: use msm8998_ln_bb_clk2 for qcm2290 SoC Dmitry Baryshkov
2022-12-05 11:18 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-03 17:57 ` [PATCH 06/16] clk: qcom: smd-rpm: rename msm8992_ln_bb_* clocks to qcs404_ln_bb_* Dmitry Baryshkov
2022-12-05 11:19 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-06 23:26 ` Dmitry Baryshkov
2022-12-06 23:26 ` Dmitry Baryshkov
2022-12-03 17:57 ` [PATCH 07/16] clk: qcom: smd-rpm: add XO_BUFFER clock for each XO_BUFFER_PINCTRL clock Dmitry Baryshkov
2022-12-05 11:20 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-03 17:58 ` [PATCH 08/16] clk: qcom: smd-rpm: drop the rpm_status_id field Dmitry Baryshkov
2022-12-05 11:21 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-05 21:38 ` Dmitry Baryshkov
2022-12-05 21:54 ` Alex Elder [this message]
2022-12-03 17:58 ` [PATCH 09/16] clk: qcom: smd-rpm: move clock definitions together Dmitry Baryshkov
2022-12-05 11:23 ` Konrad Dybcio
2022-12-05 17:04 ` Alex Elder
2022-12-03 17:58 ` [PATCH 10/16] clk: qcom: smd-rpm: rename some msm8974 active-only clocks Dmitry Baryshkov
2022-12-05 11:25 ` Konrad Dybcio
2022-12-05 17:05 ` Alex Elder
2022-12-05 21:40 ` Dmitry Baryshkov
2022-12-03 17:58 ` [PATCH 11/16] clk: qcom: smd-rpm: simplify XO_BUFFER clocks definitions Dmitry Baryshkov
2022-12-05 11:27 ` Konrad Dybcio
2022-12-05 17:05 ` Alex Elder
2022-12-06 23:30 ` Dmitry Baryshkov
2022-12-03 17:58 ` [PATCH 12/16] clk: qcom: smd-rpm: simplify SMD_RPM/_BRANCH/_QDSS clock definitions Dmitry Baryshkov
2022-12-05 11:28 ` Konrad Dybcio
2022-12-05 17:05 ` Alex Elder
2022-12-03 17:58 ` [PATCH 13/16] clk: qcom: smd-rpm: rename SMD_RPM_BRANCH clock symbols Dmitry Baryshkov
2022-12-05 11:30 ` Konrad Dybcio
2022-12-05 17:05 ` Alex Elder
2022-12-03 17:58 ` [PATCH 14/16] clk: qcom: smd-rpm: rename the qcm2290 rf_clk3 clocks Dmitry Baryshkov
2022-12-05 11:31 ` Konrad Dybcio
2022-12-05 17:05 ` Alex Elder
2022-12-03 17:58 ` [PATCH 15/16] clk: qcom: smd-rpm: rename SMD_RPM_BUS clocks Dmitry Baryshkov
2022-12-05 11:34 ` Konrad Dybcio
2022-12-05 17:05 ` Alex Elder
2022-12-05 21:42 ` Dmitry Baryshkov
2022-12-03 17:58 ` [PATCH 16/16] clk: qcom: smd-rpm: remove usage of platform name Dmitry Baryshkov
2022-12-05 11:35 ` Konrad Dybcio
2022-12-05 17:05 ` Alex Elder
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=a9226554-e592-1d41-d6c7-e343f0e48e97@linaro.org \
--to=elder@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=konrad.dybcio@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=sboyd@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