* [PATCH 0/3] Some cleanup for samsung clock
@ 2014-09-27 5:41 Pankaj Dubey
2014-09-27 5:41 ` [PATCH 1/3] clk: samsung: Spelling s/bwtween/between/ Pankaj Dubey
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-09-27 5:41 UTC (permalink / raw)
To: linux-arm-kernel
This patch series does some cleanup of samsung clock files and fixes
one typo in clk.h
Pankaj Dubey (3):
clk: samsung: Spelling s/bwtween/between/
clk: samsung: remove unnecessary CONFIG_OF from clk.c
clk: samsung: remove unnecessary inclusion of header files from clk.h
drivers/clk/samsung/clk.c | 5 ++---
drivers/clk/samsung/clk.h | 6 +-----
2 files changed, 3 insertions(+), 8 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/3] clk: samsung: Spelling s/bwtween/between/
2014-09-27 5:41 [PATCH 0/3] Some cleanup for samsung clock Pankaj Dubey
@ 2014-09-27 5:41 ` Pankaj Dubey
2014-09-27 12:56 ` Tomasz Figa
2014-09-27 5:41 ` [PATCH 2/3] clk: samsung: remove unnecessary CONFIG_OF from clk.c Pankaj Dubey
2014-09-27 5:41 ` [PATCH 3/3] clk: samsung: remove unnecessary inclusion of header files from clk.h Pankaj Dubey
2 siblings, 1 reply; 10+ messages in thread
From: Pankaj Dubey @ 2014-09-27 5:41 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
drivers/clk/samsung/clk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h
index 66ab36b..a1ece4a 100644
--- a/drivers/clk/samsung/clk.h
+++ b/drivers/clk/samsung/clk.h
@@ -25,7 +25,7 @@
* struct samsung_clk_provider: information about clock provider
* @reg_base: virtual address for the register base.
* @clk_data: holds clock related data like clk* and number of clocks.
- * @lock: maintains exclusion bwtween callbacks for a given clock-provider.
+ * @lock: maintains exclusion between callbacks for a given clock-provider.
*/
struct samsung_clk_provider {
void __iomem *reg_base;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/3] clk: samsung: remove unnecessary CONFIG_OF from clk.c
2014-09-27 5:41 [PATCH 0/3] Some cleanup for samsung clock Pankaj Dubey
2014-09-27 5:41 ` [PATCH 1/3] clk: samsung: Spelling s/bwtween/between/ Pankaj Dubey
@ 2014-09-27 5:41 ` Pankaj Dubey
2014-09-27 13:20 ` Tomasz Figa
2014-09-27 5:41 ` [PATCH 3/3] clk: samsung: remove unnecessary inclusion of header files from clk.h Pankaj Dubey
2 siblings, 1 reply; 10+ messages in thread
From: Pankaj Dubey @ 2014-09-27 5:41 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
drivers/clk/samsung/clk.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
index deab84d..31bf391 100644
--- a/drivers/clk/samsung/clk.c
+++ b/drivers/clk/samsung/clk.c
@@ -281,7 +281,6 @@ void __init samsung_clk_register_gate(struct samsung_clk_provider *ctx,
* obtain the clock speed of all external fixed clock sources from device
* tree and register it
*/
-#ifdef CONFIG_OF
void __init samsung_clk_of_register_fixed_ext(struct samsung_clk_provider *ctx,
struct samsung_fixed_rate_clock *fixed_rate_clk,
unsigned int nr_fixed_rate_clk,
@@ -298,7 +297,6 @@ void __init samsung_clk_of_register_fixed_ext(struct samsung_clk_provider *ctx,
}
samsung_clk_register_fixed_rate(ctx, fixed_rate_clk, nr_fixed_rate_clk);
}
-#endif
/* utility function to get the rate of a specified clock */
unsigned long _get_rate(const char *clk_name)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/3] clk: samsung: remove unnecessary inclusion of header files from clk.h
2014-09-27 5:41 [PATCH 0/3] Some cleanup for samsung clock Pankaj Dubey
2014-09-27 5:41 ` [PATCH 1/3] clk: samsung: Spelling s/bwtween/between/ Pankaj Dubey
2014-09-27 5:41 ` [PATCH 2/3] clk: samsung: remove unnecessary CONFIG_OF from clk.c Pankaj Dubey
@ 2014-09-27 5:41 ` Pankaj Dubey
2014-12-02 15:23 ` Sylwester Nawrocki
2 siblings, 1 reply; 10+ messages in thread
From: Pankaj Dubey @ 2014-09-27 5:41 UTC (permalink / raw)
To: linux-arm-kernel
Let's remove unnecessary include of header files from clk.h and add
required one in clk.c
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
drivers/clk/samsung/clk.c | 3 ++-
drivers/clk/samsung/clk.h | 4 ----
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
index 31bf391..952f9ec 100644
--- a/drivers/clk/samsung/clk.c
+++ b/drivers/clk/samsung/clk.c
@@ -11,7 +11,8 @@
* clock framework for Samsung platforms.
*/
-#include <linux/syscore_ops.h>
+#include <linux/of_address.h>
+
#include "clk.h"
void samsung_clk_save(void __iomem *base,
diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h
index a1ece4a..29a5779 100644
--- a/drivers/clk/samsung/clk.h
+++ b/drivers/clk/samsung/clk.h
@@ -13,12 +13,8 @@
#ifndef __SAMSUNG_CLK_H
#define __SAMSUNG_CLK_H
-#include <linux/clk.h>
#include <linux/clkdev.h>
-#include <linux/io.h>
#include <linux/clk-provider.h>
-#include <linux/of.h>
-#include <linux/of_address.h>
#include "clk-pll.h"
/**
--
1.7.9.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 1/3] clk: samsung: Spelling s/bwtween/between/
2014-09-27 5:41 ` [PATCH 1/3] clk: samsung: Spelling s/bwtween/between/ Pankaj Dubey
@ 2014-09-27 12:56 ` Tomasz Figa
0 siblings, 0 replies; 10+ messages in thread
From: Tomasz Figa @ 2014-09-27 12:56 UTC (permalink / raw)
To: linux-arm-kernel
Hi Pankaj,
On 27.09.2014 07:41, Pankaj Dubey wrote:
> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Even though the patch is obvious, it should have at least one line of
description.
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/3] clk: samsung: remove unnecessary CONFIG_OF from clk.c
2014-09-27 5:41 ` [PATCH 2/3] clk: samsung: remove unnecessary CONFIG_OF from clk.c Pankaj Dubey
@ 2014-09-27 13:20 ` Tomasz Figa
2014-09-29 7:30 ` Pankaj Dubey
0 siblings, 1 reply; 10+ messages in thread
From: Tomasz Figa @ 2014-09-27 13:20 UTC (permalink / raw)
To: linux-arm-kernel
Hi Pankaj,
On 27.09.2014 07:41, Pankaj Dubey wrote:
> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Missing patch description.
> ---
> drivers/clk/samsung/clk.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
> index deab84d..31bf391 100644
> --- a/drivers/clk/samsung/clk.c
> +++ b/drivers/clk/samsung/clk.c
> @@ -281,7 +281,6 @@ void __init samsung_clk_register_gate(struct samsung_clk_provider *ctx,
> * obtain the clock speed of all external fixed clock sources from device
> * tree and register it
> */
> -#ifdef CONFIG_OF
We still have non-DT platforms which use this code, i.e. s3c24xx and
s3c64xx. Have you checked if this compiles fine on them with CONFIG_OF
disabled?
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/3] clk: samsung: remove unnecessary CONFIG_OF from clk.c
2014-09-27 13:20 ` Tomasz Figa
@ 2014-09-29 7:30 ` Pankaj Dubey
0 siblings, 0 replies; 10+ messages in thread
From: Pankaj Dubey @ 2014-09-29 7:30 UTC (permalink / raw)
To: linux-arm-kernel
Hi Tomasz,
On Saturday, September 27, 2014 6:51 PM, Tomasz Figa wrote,
> Hi Pankaj,
>
> On 27.09.2014 07:41, Pankaj Dubey wrote:
> > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
>
> Missing patch description.
OK, will add it.
>
> > ---
> > drivers/clk/samsung/clk.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
> > index deab84d..31bf391 100644
> > --- a/drivers/clk/samsung/clk.c
> > +++ b/drivers/clk/samsung/clk.c
> > @@ -281,7 +281,6 @@ void __init samsung_clk_register_gate(struct
> samsung_clk_provider *ctx,
> > * obtain the clock speed of all external fixed clock sources from
device
> > * tree and register it
> > */
> > -#ifdef CONFIG_OF
>
> We still have non-DT platforms which use this code, i.e. s3c24xx and
s3c64xx. Have
> you checked if this compiles fine on them with CONFIG_OF disabled?
>
Compile tested with s3c2410_defconfig and s3c6400_defconfig, and its
compiled fine.
In both cases CONFIG_OF was disabled.
Thanks,
Pankaj Dubey
> Best regards,
> Tomasz
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] clk: samsung: remove unnecessary inclusion of header files from clk.h
2014-09-27 5:41 ` [PATCH 3/3] clk: samsung: remove unnecessary inclusion of header files from clk.h Pankaj Dubey
@ 2014-12-02 15:23 ` Sylwester Nawrocki
2014-12-03 11:42 ` Pankaj Dubey
0 siblings, 1 reply; 10+ messages in thread
From: Sylwester Nawrocki @ 2014-12-02 15:23 UTC (permalink / raw)
To: linux-arm-kernel
Hi Pankaj,
On 27/09/14 07:41, Pankaj Dubey wrote:
> Let's remove unnecessary include of header files from clk.h and add
> required one in clk.c
>
> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> ---
> drivers/clk/samsung/clk.c | 3 ++-
> drivers/clk/samsung/clk.h | 4 ----
> 2 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
> index 31bf391..952f9ec 100644
> --- a/drivers/clk/samsung/clk.c
> +++ b/drivers/clk/samsung/clk.c
> @@ -11,7 +11,8 @@
> * clock framework for Samsung platforms.
> */
>
> -#include <linux/syscore_ops.h>
I've dropped this change when applying since it causes a build break:
drivers/clk/samsung/clk.c:338:15: error: variable ?samsung_clk_syscore_ops? has initializer but incomplete type
drivers/clk/samsung/clk.c:339:2: error: unknown field ?suspend? specified in initializer
drivers/clk/samsung/clk.c:339:2: warning: excess elements in struct initializer [enabled by default]
drivers/clk/samsung/clk.c:339:2: warning: (near initialization for ?samsung_clk_syscore_ops?) [enabled by default]
drivers/clk/samsung/clk.c:340:2: error: unknown field ?resume? specified in initializer
drivers/clk/samsung/clk.c:340:2: warning: excess elements in struct initializer [enabled by default]
drivers/clk/samsung/clk.c:340:2: warning: (near initialization for ?samsung_clk_syscore_ops?) [enabled by default] CC drivers/dma/virt-dma.o
drivers/clk/samsung/clk.c: In function ?samsung_clk_sleep_init?:
drivers/clk/samsung/clk.c:359:3: error: implicit declaration of function ?register_syscore_ops? [-Werror=implicit-function-declaration]
Please make sure there is no build breaks with various configs when
sending patches.
--
Regards,
Sylwester
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] clk: samsung: remove unnecessary inclusion of header files from clk.h
2014-12-02 15:23 ` Sylwester Nawrocki
@ 2014-12-03 11:42 ` Pankaj Dubey
2014-12-03 12:04 ` Sylwester Nawrocki
0 siblings, 1 reply; 10+ messages in thread
From: Pankaj Dubey @ 2014-12-03 11:42 UTC (permalink / raw)
To: linux-arm-kernel
Hi Sylwester,
On Tuesday 02 December 2014 08:53 PM, Sylwester Nawrocki wrote:
> Hi Pankaj,
>
> On 27/09/14 07:41, Pankaj Dubey wrote:
>> Let's remove unnecessary include of header files from clk.h and add
>> required one in clk.c
>>
>> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
>> ---
>> drivers/clk/samsung/clk.c | 3 ++-
>> drivers/clk/samsung/clk.h | 4 ----
>> 2 files changed, 2 insertions(+), 5 deletions(-)
>>
> Please make sure there is no build breaks with various configs when
> sending patches.
I am sure that I compile tested this before submitting. Looks like
following commit [1] needs "linux/syscore-ops.h" in clk.c, before that
it was not needed.
1: clk: samsung: Factor out the common code to clk.c [SHA_ID:
16a9013b83b5106c83cf]
Anyways, I can see patches are not getting cleanly applied so, just now
I resend them [2] after rebasing please have a look.
2: http://comments.gmane.org/gmane.linux.kernel.samsung-soc/40639
Thanks,
Pankaj Dubey
>
> --
> Regards,
> Sylwester
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] clk: samsung: remove unnecessary inclusion of header files from clk.h
2014-12-03 11:42 ` Pankaj Dubey
@ 2014-12-03 12:04 ` Sylwester Nawrocki
0 siblings, 0 replies; 10+ messages in thread
From: Sylwester Nawrocki @ 2014-12-03 12:04 UTC (permalink / raw)
To: linux-arm-kernel
On 03/12/14 12:42, Pankaj Dubey wrote:
> Hi Sylwester,
>
> On Tuesday 02 December 2014 08:53 PM, Sylwester Nawrocki wrote:
>> Hi Pankaj,
>>
>> On 27/09/14 07:41, Pankaj Dubey wrote:
>>> Let's remove unnecessary include of header files from clk.h and add
>>> required one in clk.c
>>>
>>> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
>>> ---
>>> drivers/clk/samsung/clk.c | 3 ++-
>>> drivers/clk/samsung/clk.h | 4 ----
>>> 2 files changed, 2 insertions(+), 5 deletions(-)
>>>
>> Please make sure there is no build breaks with various configs when
>> sending patches.
>
> I am sure that I compile tested this before submitting. Looks like
> following commit [1] needs "linux/syscore-ops.h" in clk.c, before that
> it was not needed.
>
> 1: clk: samsung: Factor out the common code to clk.c [SHA_ID:
> 16a9013b83b5106c83cf]
OK, my apologies then for not investigating it further.
> Anyways, I can see patches are not getting cleanly applied so, just now
> I resend them [2] after rebasing please have a look.
There is no need to resend, the patches are already applied into
my tree
git://linuxtv.org/snawrocki/samsung.git for-v3.19/clk-next
I will probably send a second pull request for Mike today.
Just need to figure out what to do with the patches addressing
the dependency of the audio clock controller control registers
on the APLL clock.
--
Regards,
Sylwester
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-12-03 12:04 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-27 5:41 [PATCH 0/3] Some cleanup for samsung clock Pankaj Dubey
2014-09-27 5:41 ` [PATCH 1/3] clk: samsung: Spelling s/bwtween/between/ Pankaj Dubey
2014-09-27 12:56 ` Tomasz Figa
2014-09-27 5:41 ` [PATCH 2/3] clk: samsung: remove unnecessary CONFIG_OF from clk.c Pankaj Dubey
2014-09-27 13:20 ` Tomasz Figa
2014-09-29 7:30 ` Pankaj Dubey
2014-09-27 5:41 ` [PATCH 3/3] clk: samsung: remove unnecessary inclusion of header files from clk.h Pankaj Dubey
2014-12-02 15:23 ` Sylwester Nawrocki
2014-12-03 11:42 ` Pankaj Dubey
2014-12-03 12:04 ` Sylwester Nawrocki
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).