[PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER

Subsystems: arm port, omap2+ support, the rest

STALE5096d REVIEWED: 4 (4M)

1 review trailer.

5 messages, 3 authors, 2012-08-30 · open the first message on its own page

[PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER

From: Igor Grinberg <hidden>
Date: 2012-08-27 22:26:14

Currently, omap2_sync32k_clocksource_init() function initializes the 32K
timer as the system clock source regardless of the CONFIG_OMAP_32K_TIMER
setting.
Fix this by providing a default implementation for
!CONFIG_OMAP_32K_TIMER case.

Signed-off-by: Igor Grinberg <redacted>
Reviewed-by: Paul Walmsley <paul@pwsan.com>
---
 arch/arm/mach-omap2/timer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 840929b..2cdbcc7 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -263,6 +263,7 @@ static u32 notrace dmtimer_read_sched_clock(void)
 	return 0;
 }
 
+#ifdef CONFIG_OMAP_32K_TIMER
 /* Setup free-running counter for clocksource */
 static int __init omap2_sync32k_clocksource_init(void)
 {
@@ -302,6 +303,12 @@ static int __init omap2_sync32k_clocksource_init(void)
 
 	return ret;
 }
+#else
+static inline int omap2_sync32k_clocksource_init(void)
+{
+	return -ENODEV;
+}
+#endif
 
 static void __init omap2_gptimer_clocksource_init(int gptimer_id,
 						const char *fck_source)
-- 
1.7.3.4

[PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER

From: Shilimkar, Santosh <hidden>
Date: 2012-08-27 22:43:04

On Mon, Aug 27, 2012 at 3:26 PM, Igor Grinberg [off-list ref] wrote:
Currently, omap2_sync32k_clocksource_init() function initializes the 32K
timer as the system clock source regardless of the CONFIG_OMAP_32K_TIMER
setting.
Fix this by providing a default implementation for
!CONFIG_OMAP_32K_TIMER case.

Signed-off-by: Igor Grinberg <redacted>
Reviewed-by: Paul Walmsley <paul@pwsan.com>
---
Acked-by: Santosh Shilimkar <redacted>

[PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER

From: Igor Grinberg <hidden>
Date: 2012-08-29 22:01:13

On 08/28/12 01:43, Shilimkar, Santosh wrote:
On Mon, Aug 27, 2012 at 3:26 PM, Igor Grinberg [off-list ref] wrote:
quoted
Currently, omap2_sync32k_clocksource_init() function initializes the 32K
timer as the system clock source regardless of the CONFIG_OMAP_32K_TIMER
setting.
Fix this by providing a default implementation for
!CONFIG_OMAP_32K_TIMER case.

Signed-off-by: Igor Grinberg <redacted>
Reviewed-by: Paul Walmsley <paul@pwsan.com>
---
Acked-by: Santosh Shilimkar <redacted>
Thanks Santosh!

Tony, apparently, this bug has been there for a while,
so probably I should have added:
Cc: stable at vger.kernel.org

Thanks!

-- 
Regards,
Igor.

[PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER

From: tony@atomide.com (Tony Lindgren)
Date: 2012-08-30 20:20:58

* Igor Grinberg [off-list ref] [120829 15:02]:
On 08/28/12 01:43, Shilimkar, Santosh wrote:
quoted
On Mon, Aug 27, 2012 at 3:26 PM, Igor Grinberg [off-list ref] wrote:
quoted
Currently, omap2_sync32k_clocksource_init() function initializes the 32K
timer as the system clock source regardless of the CONFIG_OMAP_32K_TIMER
setting.
Fix this by providing a default implementation for
!CONFIG_OMAP_32K_TIMER case.

Signed-off-by: Igor Grinberg <redacted>
Reviewed-by: Paul Walmsley <paul@pwsan.com>
---
Acked-by: Santosh Shilimkar <redacted>
Thanks Santosh!

Tony, apparently, this bug has been there for a while,
so probably I should have added:
Cc: stable at vger.kernel.org
Thanks I'll apply this into fixes with Cc: stable. Note that
Cc: stable is usually added at commit time, or at least you're
not supposed to send the patch for review there.

Regards,

Tony

[PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER

From: Igor Grinberg <hidden>
Date: 2012-08-30 22:26:51

On 08/30/12 23:20, Tony Lindgren wrote:
* Igor Grinberg [off-list ref] [120829 15:02]:
quoted
On 08/28/12 01:43, Shilimkar, Santosh wrote:
quoted
On Mon, Aug 27, 2012 at 3:26 PM, Igor Grinberg [off-list ref] wrote:
quoted
Currently, omap2_sync32k_clocksource_init() function initializes the 32K
timer as the system clock source regardless of the CONFIG_OMAP_32K_TIMER
setting.
Fix this by providing a default implementation for
!CONFIG_OMAP_32K_TIMER case.

Signed-off-by: Igor Grinberg <redacted>
Reviewed-by: Paul Walmsley <paul@pwsan.com>
---
Acked-by: Santosh Shilimkar <redacted>
Thanks Santosh!

Tony, apparently, this bug has been there for a while,
so probably I should have added:
Cc: stable at vger.kernel.org
Thanks I'll apply this into fixes with Cc: stable. Note that
Cc: stable is usually added at commit time, or at least you're
not supposed to send the patch for review there.
Yeah yeah, I know, I just forgot to add it while committing.

Thanks!

-- 
Regards,
Igor.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help