* [PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER
@ 2012-08-27 22:26 Igor Grinberg
2012-08-27 22:43 ` Shilimkar, Santosh
0 siblings, 1 reply; 5+ messages in thread
From: Igor Grinberg @ 2012-08-27 22:26 UTC (permalink / raw)
To: linux-arm-kernel
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 <grinberg@compulab.co.il>
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER
2012-08-27 22:26 [PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER Igor Grinberg
@ 2012-08-27 22:43 ` Shilimkar, Santosh
2012-08-29 22:01 ` Igor Grinberg
0 siblings, 1 reply; 5+ messages in thread
From: Shilimkar, Santosh @ 2012-08-27 22:43 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Aug 27, 2012 at 3:26 PM, Igor Grinberg <grinberg@compulab.co.il> 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 <grinberg@compulab.co.il>
> Reviewed-by: Paul Walmsley <paul@pwsan.com>
> ---
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER
2012-08-27 22:43 ` Shilimkar, Santosh
@ 2012-08-29 22:01 ` Igor Grinberg
2012-08-30 20:20 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Igor Grinberg @ 2012-08-29 22:01 UTC (permalink / raw)
To: linux-arm-kernel
On 08/28/12 01:43, Shilimkar, Santosh wrote:
> On Mon, Aug 27, 2012 at 3:26 PM, Igor Grinberg <grinberg@compulab.co.il> 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 <grinberg@compulab.co.il>
>> Reviewed-by: Paul Walmsley <paul@pwsan.com>
>> ---
> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER
2012-08-29 22:01 ` Igor Grinberg
@ 2012-08-30 20:20 ` Tony Lindgren
2012-08-30 22:26 ` Igor Grinberg
0 siblings, 1 reply; 5+ messages in thread
From: Tony Lindgren @ 2012-08-30 20:20 UTC (permalink / raw)
To: linux-arm-kernel
* Igor Grinberg <grinberg@compulab.co.il> [120829 15:02]:
> On 08/28/12 01:43, Shilimkar, Santosh wrote:
> > On Mon, Aug 27, 2012 at 3:26 PM, Igor Grinberg <grinberg@compulab.co.il> 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 <grinberg@compulab.co.il>
> >> Reviewed-by: Paul Walmsley <paul@pwsan.com>
> >> ---
> > Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER
2012-08-30 20:20 ` Tony Lindgren
@ 2012-08-30 22:26 ` Igor Grinberg
0 siblings, 0 replies; 5+ messages in thread
From: Igor Grinberg @ 2012-08-30 22:26 UTC (permalink / raw)
To: linux-arm-kernel
On 08/30/12 23:20, Tony Lindgren wrote:
> * Igor Grinberg <grinberg@compulab.co.il> [120829 15:02]:
>> On 08/28/12 01:43, Shilimkar, Santosh wrote:
>>> On Mon, Aug 27, 2012 at 3:26 PM, Igor Grinberg <grinberg@compulab.co.il> 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 <grinberg@compulab.co.il>
>>>> Reviewed-by: Paul Walmsley <paul@pwsan.com>
>>>> ---
>>> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
>>
>> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-30 22:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27 22:26 [PATCH] ARM: OMAP: timer: obey the !CONFIG_OMAP_32K_TIMER Igor Grinberg
2012-08-27 22:43 ` Shilimkar, Santosh
2012-08-29 22:01 ` Igor Grinberg
2012-08-30 20:20 ` Tony Lindgren
2012-08-30 22:26 ` Igor Grinberg
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).