Skip to contentSkip to conversation

drivers/clk/Kconfig: Change COMMON_CLK to tristate

RFC In review York Sun 3 participants 6 messages Jun 17, 2015 – Jun 18, 2015

Subsystems (2)
lore
Share & tools
lore

York Sun

author
#0 lore raw

RFC 1/1 drivers/clk/Kconfig: Change COMMON_CLK to tristate

COMMON_CLK has been a bool value, selected by the platforms who need common clock framework. If a CCF driver is needed on an add-on device such as PCIe card, COMMON_CLK can be selected individually as a tristate value.

CC Paul Bolle <[email protected]>
CC Mike Turquette <[email protected]>
---
 drivers/clk/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/Kconfig +1 -1
index 32b2219..07f0b2f 100644
@@ -10,7 +10,7 @@ config HAVE_MACH_CLKDEV
 	bool
 
 config COMMON_CLK
-	bool
+	tristate "Common Clock"
 	select HAVE_CLK_PREPARE
 	select CLKDEV_LOOKUP
 	select SRCU
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 8 lines · York Sun

COMMON_CLK has been a bool value, selected by the platforms who need common clock framework. If a CCF driver is needed on an add-on device such as PCIe card, COMMON_CLK can be selected individually as a tristate value.

CC Paul Bolle <[email protected]>
CC Mike Turquette <[email protected]>

Why do you CC the I2C list for clk patches??

author
#2 lore raw
Quoted 6 lines · Wolfram Sang
Quoted 5 lines · York Sun

COMMON_CLK has been a bool value, selected by the platforms who need common clock framework. If a CCF driver is needed on an add-on device such as PCIe card, COMMON_CLK can be selected individually as a tristate value.

Quoted 6 lines
Quoted 3 lines
CC Paul Bolle <[email protected]>
CC Mike Turquette <mturquette-rdvid1DuHRBWk0Htik3J/[email protected]>

Why do you CC the I2C list for clk patches??

My apology for CC the wrong list.
It was firstly introduced in this patch http://patchwork.ozlabs.org/patch/485088/.

York

author
#3 lore raw
In reply to York Sun

Drop linux-i2c mailing list.

Michael/Paul,

Please review and tell me if this is a bad idea. I am working on a platform COMMON_CLK is not enabled. The clock I need is on a PCIe card. I don't think modify platform Kconfig is right. So modifying drivers/clk/Kconfig seems reasonable to me.

York

Quoted 26 lines · York Sun

COMMON_CLK has been a bool value, selected by the platforms who need common clock framework. If a CCF driver is needed on an add-on device such as PCIe card, COMMON_CLK can be selected individually as a tristate value.

CC Paul Bolle <[email protected]>
CC Mike Turquette <[email protected]>
---
 drivers/clk/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/Kconfig +1 -1
index 32b2219..07f0b2f 100644
@@ -10,7 +10,7 @@ config HAVE_MACH_CLKDEV
 	bool
 
 config COMMON_CLK
-	bool
+	tristate "Common Clock"
 	select HAVE_CLK_PREPARE
 	select CLKDEV_LOOKUP
 	select SRCU
#4 lore raw

York,

Quoted 1 line · York Sun

Drop linux-i2c mailing list.

(Looking at MAINTAINERS suggests that, besides Michael, Stephen Boyd and the linux-clk mailing list actually care about the COMMON CLK FRAMEWORK.)

Quoted 1 line

Please review and tell me if this is a bad idea.

You waited less than three hours to ping us. That alone would be enough for most people to ignore your message.

Quoted 4 lines

I am working on a platform
COMMON_CLK is not enabled. The clock I need is on a PCIe card. I don't think modify platform Kconfig is right. So modifying drivers/clk/Kconfig seems reasonable to me.

I have no idea what the problem is with COMMON_CLK for your driver. I found a long thread (about three weeks ago) concerning this problem. Apparently no solution was found. That's something you have to figure out with the people involved with the CCF, I can't help you there.

What I do know is that I told you already, yesterday, that changing COMMON_CLK to tristate is not needed for what it appears you want to do. And, more importantly, that it will likely break stuff left and right without additional changes (which this patch lacks).

Perhaps I was unclear. Ask for clarification if so. Perhaps I was wrong. Then you're free to correct me. But, please, rate limit your patch versions. You've sent a version on Monday, Tuesday, and Wednesday. That mainly will make people to filter out your patches. I won't be looking at a new version for another week now, sorry.

Thanks,

Paul Bolle

author
#5 lore raw

Paul,

Your review comments are very appreciated.

Quoted 8 lines · Paul Bolle

York,

Quoted 1 line · York Sun

Drop linux-i2c mailing list.

(Looking at MAINTAINERS suggests that, besides Michael, Stephen Boyd and the linux-clk mailing list actually care about the COMMON CLK FRAMEWORK.)

Great! Thanks for the pointer.

Quoted 16 lines
Quoted 2 lines

Please review and tell me if this is a bad idea.

You waited less than three hours to ping us. That alone would be enough for most people to ignore your message.

Quoted 4 lines

I am working on a platform
COMMON_CLK is not enabled. The clock I need is on a PCIe card. I don't think modify platform Kconfig is right. So modifying drivers/clk/Kconfig seems reasonable to me.

I have no idea what the problem is with COMMON_CLK for your driver. I found a long thread (about three weeks ago) concerning this problem. Apparently no solution was found. That's something you have to figure out with the people involved with the CCF, I can't help you there.

Quoted 4 lines

What I do know is that I told you already, yesterday, that changing COMMON_CLK to tristate is not needed for what it appears you want to do. And, more importantly, that it will likely break stuff left and right without additional changes (which this patch lacks).

I will follow up with the right crowd.

Quoted 6 lines

Perhaps I was unclear. Ask for clarification if so. Perhaps I was wrong. Then you're free to correct me. But, please, rate limit your patch versions. You've sent a version on Monday, Tuesday, and Wednesday. That mainly will make people to filter out your patches. I won't be looking at a new version for another week now, sorry.

That's exactly the reason I separated the Kconfig. This is more generic than the clock driver I proposed.

Thanks again.

York