diff mbox

[RESEND] clk: enable hi655x common clk automatically

Message ID 20180312104945.3001-1-riku.voipio@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Riku Voipio March 12, 2018, 10:49 a.m. UTC
From: Riku Voipio <riku.voipio@linaro.org>

Without COMMON_CLK_HI655X Wifi and bluetooth are non-functional on Hikey.
As suggested by Arnd, enable the driver automatically when the parent
driver is selected. With sensible defaults in place, we can leave other
choices for EXPERT.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Wei Xu <xuwei5@hisilicon.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Suggested-by: Arnd Bergmann <arnd@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
Previous discussion at https://patchwork.kernel.org/patch/9767143/
---
 drivers/clk/Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Ulf Hansson March 15, 2018, 1:47 p.m. UTC | #1
On 12 March 2018 at 11:49,  <riku.voipio@linaro.org> wrote:
> From: Riku Voipio <riku.voipio@linaro.org>
>
> Without COMMON_CLK_HI655X Wifi and bluetooth are non-functional on Hikey.
> As suggested by Arnd, enable the driver automatically when the parent
> driver is selected. With sensible defaults in place, we can leave other
> choices for EXPERT.
>
> Cc: John Stultz <john.stultz@linaro.org>
> Cc: Ulf Hansson <ulf.hansson@linaro.org>
> Cc: Wei Xu <xuwei5@hisilicon.com>
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Suggested-by: Arnd Bergmann <arnd@linaro.org>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>

Kind regards
Uffe

> ---
> Previous discussion at https://patchwork.kernel.org/patch/9767143/
> ---
>  drivers/clk/Kconfig | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
> index 98ce9fc6e6c0..448ce83b334d 100644
> --- a/drivers/clk/Kconfig
> +++ b/drivers/clk/Kconfig
> @@ -55,8 +55,10 @@ config COMMON_CLK_RK808
>           by control register.
>
>  config COMMON_CLK_HI655X
> -       tristate "Clock driver for Hi655x"
> -       depends on MFD_HI655X_PMIC || COMPILE_TEST
> +       tristate "Clock driver for Hi655x" if EXPERT
> +       depends on (MFD_HI655X_PMIC || COMPILE_TEST)
> +       depends on REGMAP
> +       default MFD_HI655X_PMIC
>         ---help---
>           This driver supports the hi655x PMIC clock. This
>           multi-function device has one fixed-rate oscillator, clocked
> --
> 2.15.1
>
Stephen Boyd March 15, 2018, 5:54 p.m. UTC | #2
Quoting riku.voipio@linaro.org (2018-03-12 03:49:45)
> From: Riku Voipio <riku.voipio@linaro.org>
> 
> Without COMMON_CLK_HI655X Wifi and bluetooth are non-functional on Hikey.
> As suggested by Arnd, enable the driver automatically when the parent
> driver is selected. With sensible defaults in place, we can leave other
> choices for EXPERT.
> 
> Cc: John Stultz <john.stultz@linaro.org>
> Cc: Ulf Hansson <ulf.hansson@linaro.org>
> Cc: Wei Xu <xuwei5@hisilicon.com>
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Suggested-by: Arnd Bergmann <arnd@linaro.org>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> ---
> Previous discussion at https://patchwork.kernel.org/patch/9767143/
> ---
>  drivers/clk/Kconfig | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
> index 98ce9fc6e6c0..448ce83b334d 100644
> --- a/drivers/clk/Kconfig
> +++ b/drivers/clk/Kconfig
> @@ -55,8 +55,10 @@ config COMMON_CLK_RK808
>           by control register.
>  
>  config COMMON_CLK_HI655X
> -       tristate "Clock driver for Hi655x"
> -       depends on MFD_HI655X_PMIC || COMPILE_TEST
> +       tristate "Clock driver for Hi655x" if EXPERT

Hmm. This would be the first EXPERT usage in the clk code. I guess
that's ok.

> +       depends on (MFD_HI655X_PMIC || COMPILE_TEST)
> +       depends on REGMAP
> +       default MFD_HI655X_PMIC
Riku Voipio March 16, 2018, 9:42 a.m. UTC | #3
On 15 March 2018 at 19:54, Stephen Boyd <sboyd@kernel.org> wrote:
> Quoting riku.voipio@linaro.org (2018-03-12 03:49:45)
>> From: Riku Voipio <riku.voipio@linaro.org>
>>
>> Without COMMON_CLK_HI655X Wifi and bluetooth are non-functional on Hikey.
>> As suggested by Arnd, enable the driver automatically when the parent
>> driver is selected. With sensible defaults in place, we can leave other
>> choices for EXPERT.
>>
>> Cc: John Stultz <john.stultz@linaro.org>
>> Cc: Ulf Hansson <ulf.hansson@linaro.org>
>> Cc: Wei Xu <xuwei5@hisilicon.com>
>> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
>> Suggested-by: Arnd Bergmann <arnd@linaro.org>
>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
>> ---
>> Previous discussion at https://patchwork.kernel.org/patch/9767143/
>> ---
>>  drivers/clk/Kconfig | 6 ++++--
>>  1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
>> index 98ce9fc6e6c0..448ce83b334d 100644
>> --- a/drivers/clk/Kconfig
>> +++ b/drivers/clk/Kconfig
>> @@ -55,8 +55,10 @@ config COMMON_CLK_RK808
>>           by control register.
>>
>>  config COMMON_CLK_HI655X
>> -       tristate "Clock driver for Hi655x"
>> -       depends on MFD_HI655X_PMIC || COMPILE_TEST
>> +       tristate "Clock driver for Hi655x" if EXPERT
>
> Hmm. This would be the first EXPERT usage in the clk code. I guess
> that's ok.

Put it this way - would you comfortable letting a non-expert fiddle this option?

>> +       depends on (MFD_HI655X_PMIC || COMPILE_TEST)
>> +       depends on REGMAP
>> +       default MFD_HI655X_PMIC
Stephen Boyd March 19, 2018, 8:52 p.m. UTC | #4
Quoting riku.voipio@linaro.org (2018-03-12 03:49:45)
> From: Riku Voipio <riku.voipio@linaro.org>
> 
> Without COMMON_CLK_HI655X Wifi and bluetooth are non-functional on Hikey.
> As suggested by Arnd, enable the driver automatically when the parent
> driver is selected. With sensible defaults in place, we can leave other
> choices for EXPERT.
> 
> Cc: John Stultz <john.stultz@linaro.org>
> Cc: Ulf Hansson <ulf.hansson@linaro.org>
> Cc: Wei Xu <xuwei5@hisilicon.com>
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Suggested-by: Arnd Bergmann <arnd@linaro.org>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> ---

Applied to clk-next
diff mbox

Patch

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 98ce9fc6e6c0..448ce83b334d 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -55,8 +55,10 @@  config COMMON_CLK_RK808
 	  by control register.
 
 config COMMON_CLK_HI655X
-	tristate "Clock driver for Hi655x"
-	depends on MFD_HI655X_PMIC || COMPILE_TEST
+	tristate "Clock driver for Hi655x" if EXPERT
+	depends on (MFD_HI655X_PMIC || COMPILE_TEST)
+	depends on REGMAP
+	default MFD_HI655X_PMIC
 	---help---
 	  This driver supports the hi655x PMIC clock. This
 	  multi-function device has one fixed-rate oscillator, clocked