* [PATCH v2] drivers: clk: make gpio-gated clock support optional
@ 2020-12-03 14:35 Enrico Weigelt, metux IT consult
0 siblings, 0 replies; 4+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2020-12-03 14:35 UTC (permalink / raw)
To: linux-kernel; +Cc: mturquette, sboyd, matthias.bgg, linux-clk, linux-riscv
The gpio-gate-clock / gpio-mux-clock driver isn't used much,
just by a few ARM SoCs, so there's no need to always include
it unconditionally.
Thus make it optional, but keep it enabled by default.
changes v2: fixed meanwhile removed '---help---'
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
drivers/clk/Kconfig | 7 +++++++
drivers/clk/Makefile | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index c715d4681a0b..ec5b3a75bcf4 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -38,6 +38,13 @@ menuconfig COMMON_CLK
if COMMON_CLK
+config COMMON_CLK_GPIO
+ tristate "GPIO gated clock support"
+ default y
+ help
+ Supports gpio gated clocks, which can be enabled/disabled via
+ gpio output.
+
config COMMON_CLK_WM831X
tristate "Clock driver for WM831x/2x PMICs"
depends on MFD_WM831X
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index da8fcf147eb1..0692ab5abc6d 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -11,7 +11,7 @@ obj-$(CONFIG_COMMON_CLK) += clk-multiplier.o
obj-$(CONFIG_COMMON_CLK) += clk-mux.o
obj-$(CONFIG_COMMON_CLK) += clk-composite.o
obj-$(CONFIG_COMMON_CLK) += clk-fractional-divider.o
-obj-$(CONFIG_COMMON_CLK) += clk-gpio.o
+obj-$(CONFIG_COMMON_CLK_GPIO) += clk-gpio.o
ifeq ($(CONFIG_OF), y)
obj-$(CONFIG_COMMON_CLK) += clk-conf.o
endif
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] (v2) drivers: clk: make gpio-gated clock support optional
2020-11-18 1:42 ` Stephen Boyd
@ 2020-12-03 14:44 ` Enrico Weigelt, metux IT consult
0 siblings, 0 replies; 4+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2020-12-03 14:44 UTC (permalink / raw)
To: Stephen Boyd, Enrico Weigelt, metux IT consult, linux-kernel
Cc: mturquette, matthias.bgg, linux-clk, linux-riscv
On 18.11.20 02:42, Stephen Boyd wrote:
> Quoting Enrico Weigelt, metux IT consult (2020-11-17 08:03:06)
>> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
>> index c715d4681a0b..99e0188a15be 100644
>> --- a/drivers/clk/Kconfig
>> +++ b/drivers/clk/Kconfig
>> @@ -38,6 +38,14 @@ menuconfig COMMON_CLK
>>
>> if COMMON_CLK
>>
>> +config COMMON_CLK_GPIO
>> + tristate "GPIO gated clock support"
>> + default y
>
> Maybe 'default GPIOLIB'?
>
>> + select gpiolib
>
> Does lowercase work here?
>
>> + help
>> + Supports gpio gated clocks, which can be enabled/disabled via
>> + gpio output.
>> +
>> config COMMON_CLK_WM831X
>> tristate "Clock driver for WM831x/2x PMICs"
>> depends on MFD_WM831X
thanks, fixed it in v3.
BTW: just accidentially posted an outdated and broken version again
(some submit helper script was running wild :() - please ignore that.
the valid one is v3 from yesterday. sorry for the noise.
--mtx
--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@metux.net -- +49-151-27565287
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] (v2) drivers: clk: make gpio-gated clock support optional
2020-11-17 16:03 [PATCH] (v2) " Enrico Weigelt, metux IT consult
@ 2020-11-18 1:42 ` Stephen Boyd
2020-12-03 14:44 ` Enrico Weigelt, metux IT consult
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2020-11-18 1:42 UTC (permalink / raw)
To: Enrico Weigelt, metux IT consult, linux-kernel
Cc: mturquette, matthias.bgg, linux-clk, linux-riscv
Quoting Enrico Weigelt, metux IT consult (2020-11-17 08:03:06)
> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
> index c715d4681a0b..99e0188a15be 100644
> --- a/drivers/clk/Kconfig
> +++ b/drivers/clk/Kconfig
> @@ -38,6 +38,14 @@ menuconfig COMMON_CLK
>
> if COMMON_CLK
>
> +config COMMON_CLK_GPIO
> + tristate "GPIO gated clock support"
> + default y
Maybe 'default GPIOLIB'?
> + select gpiolib
Does lowercase work here?
> + help
> + Supports gpio gated clocks, which can be enabled/disabled via
> + gpio output.
> +
> config COMMON_CLK_WM831X
> tristate "Clock driver for WM831x/2x PMICs"
> depends on MFD_WM831X
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] (v2) drivers: clk: make gpio-gated clock support optional
@ 2020-11-17 16:03 Enrico Weigelt, metux IT consult
2020-11-18 1:42 ` Stephen Boyd
0 siblings, 1 reply; 4+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2020-11-17 16:03 UTC (permalink / raw)
To: linux-kernel; +Cc: mturquette, sboyd, matthias.bgg, linux-clk, linux-riscv
The gpio-gate-clock / gpio-mux-clock driver isn't used much,
just by a few ARM SoCs, so there's no need to always include
it unconditionally.
Thus make it optional, but keep it enabled by default.
fixes v2: added missing dependency on gpiolib
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
drivers/clk/Kconfig | 8 ++++++++
drivers/clk/Makefile | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index c715d4681a0b..99e0188a15be 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -38,6 +38,14 @@ menuconfig COMMON_CLK
if COMMON_CLK
+config COMMON_CLK_GPIO
+ tristate "GPIO gated clock support"
+ default y
+ select gpiolib
+ help
+ Supports gpio gated clocks, which can be enabled/disabled via
+ gpio output.
+
config COMMON_CLK_WM831X
tristate "Clock driver for WM831x/2x PMICs"
depends on MFD_WM831X
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index da8fcf147eb1..0692ab5abc6d 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -11,7 +11,7 @@ obj-$(CONFIG_COMMON_CLK) += clk-multiplier.o
obj-$(CONFIG_COMMON_CLK) += clk-mux.o
obj-$(CONFIG_COMMON_CLK) += clk-composite.o
obj-$(CONFIG_COMMON_CLK) += clk-fractional-divider.o
-obj-$(CONFIG_COMMON_CLK) += clk-gpio.o
+obj-$(CONFIG_COMMON_CLK_GPIO) += clk-gpio.o
ifeq ($(CONFIG_OF), y)
obj-$(CONFIG_COMMON_CLK) += clk-conf.o
endif
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-03 14:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 14:35 [PATCH v2] drivers: clk: make gpio-gated clock support optional Enrico Weigelt, metux IT consult
-- strict thread matches above, loose matches on Subject: below --
2020-11-17 16:03 [PATCH] (v2) " Enrico Weigelt, metux IT consult
2020-11-18 1:42 ` Stephen Boyd
2020-12-03 14:44 ` Enrico Weigelt, metux IT consult
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).