All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alim Akhtar <alim.akhtar@samsung.com>
To: Krzysztof Kozlowski <k.kozlowski@samsung.com>,
	lee.jones@linaro.org, broonie@kernel.org
Cc: mturquette@baylibre.com, linux-samsung-soc@vger.kernel.org,
	linux-clk@vger.kernel.org, rtc-linux@googlegroups.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/5] clk: s2mps15: Add support for S2MPS15 clocks
Date: Wed, 28 Oct 2015 09:06:55 +0530	[thread overview]
Message-ID: <563042D7.7020907@samsung.com> (raw)
In-Reply-To: <5630234A.8080905@samsung.com>

Hello

On 10/28/2015 06:52 AM, Krzysztof Kozlowski wrote:
> On 26.10.2015 21:51, Alim Akhtar wrote:
>> S2MPS15 PMIC has three 32k buffered clocks outputs. This patch
>> adds supports for the same to the s2mps11 clock driver.
>>
>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>> ---
>>   drivers/clk/Kconfig       |    5 +++--
>>   drivers/clk/clk-s2mps11.c |   24 ++++++++++++++++++++++++
>>   2 files changed, 27 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
>> index a1fa61159179..037a314b5d76 100644
>> --- a/drivers/clk/Kconfig
>> +++ b/drivers/clk/Kconfig
>> @@ -120,9 +120,10 @@ config COMMON_CLK_S2MPS11
>>   	tristate "Clock driver for S2MPS1X/S5M8767 MFD"
>>   	depends on MFD_SEC_CORE
>>   	---help---
>> -	  This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
>> +	  This driver supports S2MPS1X/S5M8767 crystal oscillator
>>   	  clock. These multi-function devices have two (S2MPS14) or three
>> -	  (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.
>> +	  (S2MPS11/S2MPS13/S2MPS15/S5M8767) fixed-rate oscillators,
>> +	  clocked at 32KHz each.
>>
>>   config CLK_TWL6040
>>   	tristate "External McPDM functional clock from twl6040"
>> diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c
>> index d266299dfdb1..455500dca653 100644
>> --- a/drivers/clk/clk-s2mps11.c
>> +++ b/drivers/clk/clk-s2mps11.c
>> @@ -25,6 +25,7 @@
>>   #include <linux/mfd/samsung/s2mps11.h>
>>   #include <linux/mfd/samsung/s2mps13.h>
>>   #include <linux/mfd/samsung/s2mps14.h>
>> +#include <linux/mfd/samsung/s2mps15.h>
>>   #include <linux/mfd/samsung/s5m8767.h>
>>   #include <linux/mfd/samsung/core.h>
>>
>> @@ -148,6 +149,24 @@ static struct clk_init_data s2mps14_clks_init[S2MPS11_CLKS_NUM] = {
>>   	},
>>   };
>>
>> +static struct clk_init_data s2mps15_clks_init[S2MPS11_CLKS_NUM] = {
>> +	[S2MPS11_CLK_AP] = {
>> +		.name = "s2mps15_ap",
>> +		.ops = &s2mps11_clk_ops,
>> +		.flags = CLK_IS_ROOT,
>> +	},
>> +	[S2MPS11_CLK_CP] = {
>> +		.name = "s2mps15_cp",
>> +		.ops = &s2mps11_clk_ops,
>> +		.flags = CLK_IS_ROOT,
>> +	},
>> +	[S2MPS11_CLK_BT] = {
>> +		.name = "s2mps15_bt",
>> +		.ops = &s2mps11_clk_ops,
>> +		.flags = CLK_IS_ROOT,
>> +	},
>> +};
>
> I see that for S2MPS13 we already added similar array which duplicates
> the S2MPS11. This actually looks wrong. Just re-use existing
> s2mps11_clks_init.
>
hmm..ok will do.
> Best regards,
> Krzysztof
>
>

WARNING: multiple messages have this Message-ID (diff)
From: Alim Akhtar <alim.akhtar@samsung.com>
To: Krzysztof Kozlowski <k.kozlowski@samsung.com>,
	lee.jones@linaro.org, broonie@kernel.org
Cc: mturquette@baylibre.com, linux-samsung-soc@vger.kernel.org,
	linux-clk@vger.kernel.org, rtc-linux@googlegroups.com,
	linux-kernel@vger.kernel.org
Subject: [rtc-linux] Re: [PATCH v3 4/5] clk: s2mps15: Add support for S2MPS15 clocks
Date: Wed, 28 Oct 2015 09:06:55 +0530	[thread overview]
Message-ID: <563042D7.7020907@samsung.com> (raw)
In-Reply-To: <5630234A.8080905@samsung.com>

Hello

On 10/28/2015 06:52 AM, Krzysztof Kozlowski wrote:
> On 26.10.2015 21:51, Alim Akhtar wrote:
>> S2MPS15 PMIC has three 32k buffered clocks outputs. This patch
>> adds supports for the same to the s2mps11 clock driver.
>>
>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>> ---
>>   drivers/clk/Kconfig       |    5 +++--
>>   drivers/clk/clk-s2mps11.c |   24 ++++++++++++++++++++++++
>>   2 files changed, 27 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
>> index a1fa61159179..037a314b5d76 100644
>> --- a/drivers/clk/Kconfig
>> +++ b/drivers/clk/Kconfig
>> @@ -120,9 +120,10 @@ config COMMON_CLK_S2MPS11
>>   	tristate "Clock driver for S2MPS1X/S5M8767 MFD"
>>   	depends on MFD_SEC_CORE
>>   	---help---
>> -	  This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
>> +	  This driver supports S2MPS1X/S5M8767 crystal oscillator
>>   	  clock. These multi-function devices have two (S2MPS14) or three
>> -	  (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.
>> +	  (S2MPS11/S2MPS13/S2MPS15/S5M8767) fixed-rate oscillators,
>> +	  clocked at 32KHz each.
>>
>>   config CLK_TWL6040
>>   	tristate "External McPDM functional clock from twl6040"
>> diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c
>> index d266299dfdb1..455500dca653 100644
>> --- a/drivers/clk/clk-s2mps11.c
>> +++ b/drivers/clk/clk-s2mps11.c
>> @@ -25,6 +25,7 @@
>>   #include <linux/mfd/samsung/s2mps11.h>
>>   #include <linux/mfd/samsung/s2mps13.h>
>>   #include <linux/mfd/samsung/s2mps14.h>
>> +#include <linux/mfd/samsung/s2mps15.h>
>>   #include <linux/mfd/samsung/s5m8767.h>
>>   #include <linux/mfd/samsung/core.h>
>>
>> @@ -148,6 +149,24 @@ static struct clk_init_data s2mps14_clks_init[S2MPS11_CLKS_NUM] = {
>>   	},
>>   };
>>
>> +static struct clk_init_data s2mps15_clks_init[S2MPS11_CLKS_NUM] = {
>> +	[S2MPS11_CLK_AP] = {
>> +		.name = "s2mps15_ap",
>> +		.ops = &s2mps11_clk_ops,
>> +		.flags = CLK_IS_ROOT,
>> +	},
>> +	[S2MPS11_CLK_CP] = {
>> +		.name = "s2mps15_cp",
>> +		.ops = &s2mps11_clk_ops,
>> +		.flags = CLK_IS_ROOT,
>> +	},
>> +	[S2MPS11_CLK_BT] = {
>> +		.name = "s2mps15_bt",
>> +		.ops = &s2mps11_clk_ops,
>> +		.flags = CLK_IS_ROOT,
>> +	},
>> +};
>
> I see that for S2MPS13 we already added similar array which duplicates
> the S2MPS11. This actually looks wrong. Just re-use existing
> s2mps11_clks_init.
>
hmm..ok will do.
> Best regards,
> Krzysztof
>
>

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  reply	other threads:[~2015-10-28  3:36 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-26 12:51 [PATCH v3 0/5] mfd: sec: add S2MPS15 PMIC support Alim Akhtar
2015-10-26 12:51 ` [rtc-linux] " Alim Akhtar
2015-10-26 12:51 ` [PATCH v3 1/5] dt-bindings: mfd: s2mps11: add documentation for s2mps15 PMIC Alim Akhtar
2015-10-26 12:51   ` [rtc-linux] " Alim Akhtar
2015-10-26 12:51 ` [PATCH v3 2/5] mfd: sec: Add support for S2MPS15 PMIC Alim Akhtar
2015-10-26 12:51   ` [rtc-linux] " Alim Akhtar
2015-10-26 14:34   ` Lee Jones
2015-10-26 14:34     ` [rtc-linux] " Lee Jones
2015-10-28  1:15     ` Krzysztof Kozlowski
2015-10-28  1:15       ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28  8:46       ` Lee Jones
2015-10-28  8:46         ` [rtc-linux] " Lee Jones
2015-10-28 11:21         ` Alim Akhtar
2015-10-28 11:21           ` [rtc-linux] " Alim Akhtar
2015-10-28 13:47           ` Krzysztof Kozlowski
2015-10-28 13:47             ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28 13:44         ` Krzysztof Kozlowski
2015-10-28 13:44           ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28 13:51           ` Lee Jones
2015-10-28 13:51             ` [rtc-linux] " Lee Jones
2015-10-29  4:19             ` Alim Akhtar
2015-10-29  4:19               ` [rtc-linux] " Alim Akhtar
2015-10-28  1:28   ` Krzysztof Kozlowski
2015-10-28  1:28     ` [rtc-linux] " Krzysztof Kozlowski
2015-10-26 12:51 ` [PATCH v3 3/5] regulator: s2mps11: add support for S2MPS15 regulators Alim Akhtar
2015-10-26 12:51   ` [rtc-linux] " Alim Akhtar
2015-10-26 12:51 ` [PATCH v3 4/5] clk: s2mps15: Add support for S2MPS15 clocks Alim Akhtar
2015-10-26 12:51   ` [rtc-linux] " Alim Akhtar
2015-10-28  1:22   ` Krzysztof Kozlowski
2015-10-28  1:22     ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28  3:36     ` Alim Akhtar [this message]
2015-10-28  3:36       ` Alim Akhtar
2015-10-28  1:26   ` Krzysztof Kozlowski
2015-10-28  1:26     ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28  4:34     ` Krzysztof Kozlowski
2015-10-28  4:34       ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28  4:55       ` Alim Akhtar
2015-10-28  4:55         ` [rtc-linux] " Alim Akhtar
2015-10-28  5:36         ` Krzysztof Kozlowski
2015-10-28  5:36           ` [rtc-linux] " Krzysztof Kozlowski
2015-10-26 12:51 ` [PATCH v3 5/5] drivers/rtc/rtc-s5m.c: add support for S2MPS15 RTC Alim Akhtar
2015-10-26 12:51   ` [rtc-linux] " Alim Akhtar
2015-10-27 22:59   ` Alexandre Belloni
2015-10-27 22:59     ` Alexandre Belloni
2015-10-28  1:29   ` Krzysztof Kozlowski
2015-10-28  1:29     ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28  1:53     ` Mark Brown
2015-10-28  1:53       ` [rtc-linux] " Mark Brown
2015-10-28  2:17       ` Krzysztof Kozlowski
2015-10-28  2:17         ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28  3:14         ` Alim Akhtar
2015-10-28  3:14           ` [rtc-linux] " Alim Akhtar
2015-10-28  3:31           ` Krzysztof Kozlowski
2015-10-28  3:31             ` [rtc-linux] " Krzysztof Kozlowski
2015-10-28  3:33             ` Alim Akhtar
2015-10-28  3:33               ` [rtc-linux] " Alim Akhtar
2015-10-28  9:48             ` Alexandre Belloni
2015-10-28  9:48               ` Alexandre Belloni
2015-10-28 10:30               ` Alim Akhtar
2015-10-28 10:30                 ` Alim Akhtar
2015-10-28 13:35                 ` Krzysztof Kozlowski
2015-10-28 13:35                   ` Krzysztof Kozlowski
2015-10-28 13:31               ` Krzysztof Kozlowski
2015-10-28 13:31                 ` Krzysztof Kozlowski
2015-10-28 13:43                 ` Alexandre Belloni
2015-10-28 13:43                   ` Alexandre Belloni

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=563042D7.7020907@samsung.com \
    --to=alim.akhtar@samsung.com \
    --cc=broonie@kernel.org \
    --cc=k.kozlowski@samsung.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=rtc-linux@googlegroups.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.