* [PATCH] ARM: OMAP2+: Fix selection of clockevent timer when using device-tree
@ 2013-01-29 20:23 Jon Hunter
2013-01-30 5:54 ` Santosh Shilimkar
2013-01-30 7:18 ` Bedia, Vaibhav
0 siblings, 2 replies; 5+ messages in thread
From: Jon Hunter @ 2013-01-29 20:23 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-omap, linux-arm, Jon Hunter
Commit 9725f44 (ARM: OMAP: Add DT support for timer driver) added
device-tree support for selecting a clockevent timer by property.
However, the code is currently ignoring the property passed and
selecting the first available timer found. Hence, for the OMAP3 beagle
board timer-12 is not being selected as expected. Fix this problem
by ensuring the timer property is passed to omap_get_timer_dt().
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
---
arch/arm/mach-omap2/timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index b8ad6e6..265de51 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -228,7 +228,7 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
int r = 0;
if (of_have_populated_dt()) {
- np = omap_get_timer_dt(omap_timer_match, NULL);
+ np = omap_get_timer_dt(omap_timer_match, property);
if (!np)
return -ENODEV;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: OMAP2+: Fix selection of clockevent timer when using device-tree
2013-01-29 20:23 [PATCH] ARM: OMAP2+: Fix selection of clockevent timer when using device-tree Jon Hunter
@ 2013-01-30 5:54 ` Santosh Shilimkar
2013-01-30 7:18 ` Bedia, Vaibhav
1 sibling, 0 replies; 5+ messages in thread
From: Santosh Shilimkar @ 2013-01-30 5:54 UTC (permalink / raw)
To: Jon Hunter; +Cc: Tony Lindgren, linux-omap, linux-arm
On Wednesday 30 January 2013 01:53 AM, Jon Hunter wrote:
> Commit 9725f44 (ARM: OMAP: Add DT support for timer driver) added
> device-tree support for selecting a clockevent timer by property.
> However, the code is currently ignoring the property passed and
> selecting the first available timer found. Hence, for the OMAP3 beagle
> board timer-12 is not being selected as expected. Fix this problem
> by ensuring the timer property is passed to omap_get_timer_dt().
>
> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
> ---
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] ARM: OMAP2+: Fix selection of clockevent timer when using device-tree
2013-01-29 20:23 [PATCH] ARM: OMAP2+: Fix selection of clockevent timer when using device-tree Jon Hunter
2013-01-30 5:54 ` Santosh Shilimkar
@ 2013-01-30 7:18 ` Bedia, Vaibhav
2013-01-30 17:51 ` Jon Hunter
1 sibling, 1 reply; 5+ messages in thread
From: Bedia, Vaibhav @ 2013-01-30 7:18 UTC (permalink / raw)
To: Hunter, Jon, Tony Lindgren; +Cc: linux-omap, linux-arm
On Wed, Jan 30, 2013 at 01:53:11, Hunter, Jon wrote:
> Commit 9725f44 (ARM: OMAP: Add DT support for timer driver) added
> device-tree support for selecting a clockevent timer by property.
> However, the code is currently ignoring the property passed and
> selecting the first available timer found. Hence, for the OMAP3 beagle
> board timer-12 is not being selected as expected. Fix this problem
> by ensuring the timer property is passed to omap_get_timer_dt().
I thought that was intentional ;) and had this change in the clkevt-clksrc
interchange patch for AM33xx.
Anyways, this change works for me so...
Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: OMAP2+: Fix selection of clockevent timer when using device-tree
2013-01-30 7:18 ` Bedia, Vaibhav
@ 2013-01-30 17:51 ` Jon Hunter
2013-02-01 22:44 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Jon Hunter @ 2013-01-30 17:51 UTC (permalink / raw)
To: Bedia, Vaibhav; +Cc: Tony Lindgren, linux-omap, linux-arm
On 01/30/2013 01:18 AM, Bedia, Vaibhav wrote:
> On Wed, Jan 30, 2013 at 01:53:11, Hunter, Jon wrote:
>> Commit 9725f44 (ARM: OMAP: Add DT support for timer driver) added
>> device-tree support for selecting a clockevent timer by property.
>> However, the code is currently ignoring the property passed and
>> selecting the first available timer found. Hence, for the OMAP3 beagle
>> board timer-12 is not being selected as expected. Fix this problem
>> by ensuring the timer property is passed to omap_get_timer_dt().
>
> I thought that was intentional ;) and had this change in the clkevt-clksrc
> interchange patch for AM33xx.
No definitely was not. Thanks, I had missed that detail in the patch you
sent!
> Anyways, this change works for me so...
>
> Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Thanks!
Jon
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: OMAP2+: Fix selection of clockevent timer when using device-tree
2013-01-30 17:51 ` Jon Hunter
@ 2013-02-01 22:44 ` Tony Lindgren
0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2013-02-01 22:44 UTC (permalink / raw)
To: Jon Hunter; +Cc: Bedia, Vaibhav, linux-omap, linux-arm
* Jon Hunter <jon-hunter@ti.com> [130130 09:54]:
>
> On 01/30/2013 01:18 AM, Bedia, Vaibhav wrote:
> > On Wed, Jan 30, 2013 at 01:53:11, Hunter, Jon wrote:
> >> Commit 9725f44 (ARM: OMAP: Add DT support for timer driver) added
> >> device-tree support for selecting a clockevent timer by property.
> >> However, the code is currently ignoring the property passed and
> >> selecting the first available timer found. Hence, for the OMAP3 beagle
> >> board timer-12 is not being selected as expected. Fix this problem
> >> by ensuring the timer property is passed to omap_get_timer_dt().
> >
> > I thought that was intentional ;) and had this change in the clkevt-clksrc
> > interchange patch for AM33xx.
>
> No definitely was not. Thanks, I had missed that detail in the patch you
> sent!
>
> > Anyways, this change works for me so...
> >
> > Tested-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
>
> Thanks!
Thanks applying into omap-for-v3.9/fixes-non-critical.
Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-02-01 22:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-29 20:23 [PATCH] ARM: OMAP2+: Fix selection of clockevent timer when using device-tree Jon Hunter
2013-01-30 5:54 ` Santosh Shilimkar
2013-01-30 7:18 ` Bedia, Vaibhav
2013-01-30 17:51 ` Jon Hunter
2013-02-01 22:44 ` Tony Lindgren
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).