Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1670123 > unrolled thread
| Started by | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| First post | 2017-06-20 02:50 +0200 |
| Last post | 2017-06-23 17:50 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] clk: gcc-msm8996: Add missing lpass smmu clks Stephen Boyd <sboyd@codeaurora.org> - 2017-06-20 02:50 +0200
Re: [PATCH] clk: gcc-msm8996: Add missing lpass smmu clks Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2017-06-23 13:10 +0200
Re: [PATCH] clk: gcc-msm8996: Add missing lpass smmu clks Stephen Boyd <sboyd@codeaurora.org> - 2017-06-23 17:50 +0200
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2017-06-20 02:50 +0200 |
| Subject | Re: [PATCH] clk: gcc-msm8996: Add missing lpass smmu clks |
| Message-ID | <tUfwK-1t8-3@gated-at.bofh.it> |
On 06/12, Srinivas Kandagatla wrote:
> This patch adds missing LPASS smmu clks which are required by the audio driver.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
> drivers/clk/qcom/gcc-msm8996.c | 26 ++++++++++++++++++++++++++
> include/dt-bindings/clock/qcom,gcc-msm8996.h | 2 ++
> 2 files changed, 28 insertions(+)
>
> diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c
> index 56e0a295c74e..6290ce551505 100644
> --- a/drivers/clk/qcom/gcc-msm8996.c
> +++ b/drivers/clk/qcom/gcc-msm8996.c
> @@ -2644,6 +2644,30 @@ static struct clk_fixed_factor ufs_rx_cfg_clk_src = {
> },
> };
>
> +static struct clk_branch gcc_hlos1_vote_lpass_core_smmu_clk = {
> + .halt_reg = 0x7d010,
Don't we need .halt_check = BRANCH_HALT_VOTED for these?
> + .clkr = {
> + .enable_reg = 0x7d010,
> + .enable_mask = BIT(0),
> + .hw.init = &(struct clk_init_data){
> + .name = "hlos1_vote_lpass_core_smmu_clk",
> + .ops = &clk_branch2_ops,
> + },
> + },
> +};
> +
> +static struct clk_branch gcc_hlos1_vote_lpass_adsp_smmu_clk = {
> + .halt_reg = 0x7d014,
> + .clkr = {
> + .enable_reg = 0x7d014,
> + .enable_mask = BIT(0),
> + .hw.init = &(struct clk_init_data){
> + .name = "hlos1_vote_lpass_adsp_smmu_clk",
> + .ops = &clk_branch2_ops,
> + },
> + },
> +};
> +
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
[toc] | [next] | [standalone]
| From | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> |
|---|---|
| Date | 2017-06-23 13:10 +0200 |
| Message-ID | <tVuDo-1pp-11@gated-at.bofh.it> |
| In reply to | #1670123 |
On 20/06/17 01:47, Stephen Boyd wrote:
> On 06/12, Srinivas Kandagatla wrote:
>> This patch adds missing LPASS smmu clks which are required by the audio driver.
>>
>> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
>> ---
>> drivers/clk/qcom/gcc-msm8996.c | 26 ++++++++++++++++++++++++++
>> include/dt-bindings/clock/qcom,gcc-msm8996.h | 2 ++
>> 2 files changed, 28 insertions(+)
>>
>> diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c
>> index 56e0a295c74e..6290ce551505 100644
>> --- a/drivers/clk/qcom/gcc-msm8996.c
>> +++ b/drivers/clk/qcom/gcc-msm8996.c
>> @@ -2644,6 +2644,30 @@ static struct clk_fixed_factor ufs_rx_cfg_clk_src = {
>> },
>> };
>>
>> +static struct clk_branch gcc_hlos1_vote_lpass_core_smmu_clk = {
>> + .halt_reg = 0x7d010,
>
> Don't we need .halt_check = BRANCH_HALT_VOTED for these?
>
I don't think we need it for these clks, Downstream driver has
no_halt_check_on_disable = true for both these clks.
thanks,
srini
>> + .clkr = {
>> + .enable_reg = 0x7d010,
>> + .enable_mask = BIT(0),
>> + .hw.init = &(struct clk_init_data){
>> + .name = "hlos1_vote_lpass_core_smmu_clk",
>> + .ops = &clk_branch2_ops,
>> + },
>> + },
>> +};
>> +
>> +static struct clk_branch gcc_hlos1_vote_lpass_adsp_smmu_clk = {
>> + .halt_reg = 0x7d014,
>> + .clkr = {
>> + .enable_reg = 0x7d014,
>> + .enable_mask = BIT(0),
>> + .hw.init = &(struct clk_init_data){
>> + .name = "hlos1_vote_lpass_adsp_smmu_clk",
>> + .ops = &clk_branch2_ops,
>> + },
>> + },
>> +};
>> +
>
[toc] | [prev] | [next] | [standalone]
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2017-06-23 17:50 +0200 |
| Message-ID | <tVz0m-3Z7-11@gated-at.bofh.it> |
| In reply to | #1673477 |
On 06/23, Srinivas Kandagatla wrote:
>
>
> On 20/06/17 01:47, Stephen Boyd wrote:
> >On 06/12, Srinivas Kandagatla wrote:
> >>This patch adds missing LPASS smmu clks which are required by the audio driver.
> >>
> >>Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> >>---
> >> drivers/clk/qcom/gcc-msm8996.c | 26 ++++++++++++++++++++++++++
> >> include/dt-bindings/clock/qcom,gcc-msm8996.h | 2 ++
> >> 2 files changed, 28 insertions(+)
> >>
> >>diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c
> >>index 56e0a295c74e..6290ce551505 100644
> >>--- a/drivers/clk/qcom/gcc-msm8996.c
> >>+++ b/drivers/clk/qcom/gcc-msm8996.c
> >>@@ -2644,6 +2644,30 @@ static struct clk_fixed_factor ufs_rx_cfg_clk_src = {
> >> },
> >> };
> >>+static struct clk_branch gcc_hlos1_vote_lpass_core_smmu_clk = {
> >>+ .halt_reg = 0x7d010,
> >
> >Don't we need .halt_check = BRANCH_HALT_VOTED for these?
> >
> I don't think we need it for these clks, Downstream driver has
> no_halt_check_on_disable = true for both these clks.
>
>
Right, no_halt_check_on_disable means we don't check the halt bit
when disabling the clk, but we _do_ check the halt bit when
enabling. In upstream clk driver that would be indicated with
BRANCH_HALT_VOTED, where we check the halt bit when enabling and
it's voted and do a small udelay() if we're disabling and it's
voted. I suppose that small udelay() could be removed because it
doesn't really matter that it turns off or not when we're
disabling a voted clk.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web