Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1497824 > unrolled thread

[PATCH v3] pwm: add depends, COMPILE_TEST and default y for brcm-iproc-pwm

Started byScott Branden <scott.branden@broadcom.com>
First post2016-10-08 23:00 +0200
Last post2016-10-08 23:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v3] pwm: add depends, COMPILE_TEST and default y for brcm-iproc-pwm Scott Branden <scott.branden@broadcom.com> - 2016-10-08 23:00 +0200
    Re: [PATCH v3] pwm: add depends, COMPILE_TEST and default y for  brcm-iproc-pwm Ray Jui <ray.jui@broadcom.com> - 2016-10-08 23:10 +0200

#1497824 — [PATCH v3] pwm: add depends, COMPILE_TEST and default y for brcm-iproc-pwm

FromScott Branden <scott.branden@broadcom.com>
Date2016-10-08 23:00 +0200
Subject[PATCH v3] pwm: add depends, COMPILE_TEST and default y for brcm-iproc-pwm
Message-ID<sq6SS-3pc-23@gated-at.bofh.it>
- Add depends on COMMON_CLK for PWM_BCM_IPROC
- Enable COMPILE_TEST for broader compile coverage.
- Default y for IPROC PWM driver for IPROC SoCs.
This allows you to turn it on simply by selecting CONFIG_PWM.

Signed-off-by: Scott Branden <scott.branden@broadcom.com>
---
 drivers/pwm/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 80a566a..3eb1b6b 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -76,7 +76,9 @@ config PWM_ATMEL_TCB
 
 config PWM_BCM_IPROC
 	tristate "iProc PWM support"
-	depends on ARCH_BCM_IPROC
+	depends on ARCH_BCM_IPROC || COMPILE_TEST
+	depends on COMMON_CLK
+	default ARCH_BCM_IPROC
 	help
 	  Generic PWM framework driver for Broadcom iProc PWM block. This
 	  block is used in Broadcom iProc SoC's.
-- 
2.5.0

[toc] | [next] | [standalone]


#1497826 — Re: [PATCH v3] pwm: add depends, COMPILE_TEST and default y for brcm-iproc-pwm

FromRay Jui <ray.jui@broadcom.com>
Date2016-10-08 23:10 +0200
SubjectRe: [PATCH v3] pwm: add depends, COMPILE_TEST and default y for brcm-iproc-pwm
Message-ID<sq72x-3Hw-5@gated-at.bofh.it>
In reply to#1497824

On 10/8/2016 1:54 PM, Scott Branden wrote:
> - Add depends on COMMON_CLK for PWM_BCM_IPROC
> - Enable COMPILE_TEST for broader compile coverage.
> - Default y for IPROC PWM driver for IPROC SoCs.
> This allows you to turn it on simply by selecting CONFIG_PWM.
>
> Signed-off-by: Scott Branden <scott.branden@broadcom.com>
> ---
>  drivers/pwm/Kconfig | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
> index 80a566a..3eb1b6b 100644
> --- a/drivers/pwm/Kconfig
> +++ b/drivers/pwm/Kconfig
> @@ -76,7 +76,9 @@ config PWM_ATMEL_TCB
>
>  config PWM_BCM_IPROC
>  	tristate "iProc PWM support"
> -	depends on ARCH_BCM_IPROC
> +	depends on ARCH_BCM_IPROC || COMPILE_TEST
> +	depends on COMMON_CLK
> +	default ARCH_BCM_IPROC
>  	help
>  	  Generic PWM framework driver for Broadcom iProc PWM block. This
>  	  block is used in Broadcom iProc SoC's.
>

Looks good to me!

Reviewed-by: Ray Jui <ray.jui@broadcom.com>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web