linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] clocksource/drivers/sprd: Fix Kconfig dependency
@ 2018-05-07  9:04 Chunyan Zhang
  2018-05-08  1:44 ` Daniel Lezcano
  0 siblings, 1 reply; 2+ messages in thread
From: Chunyan Zhang @ 2018-05-07  9:04 UTC (permalink / raw)
  To: Daniel Lezcano
  Cc: linux-kernel, Baolin Wang, Orson Zhai, Chunyan Zhang, Chunyan Zhang

SPRD arch doesn't select SPRD_TIMER, so this config would not
appear even if ARCH_SPRD is set but COMPILE_TEST not.

Fix the dependency of this config with SPRD arch, and set a
default value for it, also leave other choices for EXPERT.

Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
---
 drivers/clocksource/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 8e8a097..dec0dd8 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -450,8 +450,10 @@ config MTK_TIMER
 	  Support for Mediatek timer driver.
 
 config SPRD_TIMER
-	bool "Spreadtrum timer driver" if COMPILE_TEST
+	bool "Spreadtrum timer driver" if EXPERT
 	depends on HAS_IOMEM
+	depends on (ARCH_SPRD || COMPILE_TEST)
+	default ARCH_SPRD
 	select TIMER_OF
 	help
 	  Enables support for the Spreadtrum timer driver.
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V2] clocksource/drivers/sprd: Fix Kconfig dependency
  2018-05-07  9:04 [PATCH V2] clocksource/drivers/sprd: Fix Kconfig dependency Chunyan Zhang
@ 2018-05-08  1:44 ` Daniel Lezcano
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Lezcano @ 2018-05-08  1:44 UTC (permalink / raw)
  To: Chunyan Zhang; +Cc: linux-kernel, Baolin Wang, Orson Zhai, Chunyan Zhang

On Mon, May 07, 2018 at 05:04:47PM +0800, Chunyan Zhang wrote:
> SPRD arch doesn't select SPRD_TIMER, so this config would not
> appear even if ARCH_SPRD is set but COMPILE_TEST not.
> 
> Fix the dependency of this config with SPRD arch, and set a
> default value for it, also leave other choices for EXPERT.
> 
> Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
> ---

Applied, thanks.

  -- Daniel

-- 

 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-08  1:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-07  9:04 [PATCH V2] clocksource/drivers/sprd: Fix Kconfig dependency Chunyan Zhang
2018-05-08  1:44 ` Daniel Lezcano

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).