All of lore.kernel.org
 help / color / mirror / Atom feed
From: johnstul@us.ibm.com (John Stultz)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2] ARM: bcm281xx: Add timer driver
Date: Mon, 10 Dec 2012 11:05:41 -0800	[thread overview]
Message-ID: <50C63285.1030605@us.ibm.com> (raw)
In-Reply-To: <CAOesGMg3-=ywfgp365_zumsBWBKC+ASxwYpobbkV4_x37P0NoQ@mail.gmail.com>

On 12/08/2012 03:44 PM, Olof Johansson wrote:
> John,
>
> On Sat, Dec 8, 2012 at 12:15 AM, Christian Daudt <csd@broadcom.com> wrote:
>> This adds support for the Broadcom timer, used in the following SoCs:
>> BCM11130, BCM11140, BCM11351, BCM28145, BCM28155
>>
>> This patch needs the arm-soc/soc/next branch
>>
> Given the dependencies on the new platform here, should we just merge
> this through arm-soc? If so, an Acked-by would be appreciated.
>
> Alternatively, we can merge the driver and the device tree updates
> separately if that's easier.

So I'd definitely rather any hardware specific clocksource/clockevent 
drivers be merged through the arch tree, as there's no way I'll be able 
to do proper reviewing or testing of the code given my lack of knowledge 
and access to the various hardware bits (this is why I preferred when 
clocksource drivers stayed in their arch tree - but I've been overruled 
on this :).

And in this case, Thomas has a better sense of the clockevents code then 
I do (I focus more on the clocksource code), and its only been recently 
that folks started dumping clockevent drivers in the clocksource 
directory (usually because its the same hardware backing both).

That said, if there's any non-hardware specific clocksource changes, I 
definitely would like to review it. The clocksource mmio driver for 
instance, snuck by me (likely my fault for ignoring things) and probably 
should be eventually merged into the clocksource core, rather then being 
a meta-driver.

But since you pulled me in here, I've got a bike-shedding nit below 
(Sorry!).

>> diff --git a/drivers/clocksource/bcm_kona_timer.c b/drivers/clocksource/bcm_kona_timer.c
>> new file mode 100644
>> index 0000000..dbc54c2
>> --- /dev/null
>> +++ b/drivers/clocksource/bcm_kona_timer.c
>>
>> +static void __init timers_init(void)
>> +static int timer_set_next_event(unsigned long clc,
>> +                                 struct clock_event_device *unused)
>> +static void timer_set_mode(enum clock_event_mode mode,
>> +                            struct clock_event_device *unused)
>> +static void __init timer_clockevents_init(void)
>>
>> +static irqreturn_t timer_interrupt(int irq, void *dev_id)
>>

These are all terribly generic function names. I know they're static 
(and plenty of other driver do the same thing), but it makes grepping 
for similar code a pain and can cause confusing backtraces.   Maybe 
consider using the kona_timer_... prefix?

Other then that, for what its worth,
Acked-by: John Stultz <johnstul@us.ibm.com>

thanks
-john

  reply	other threads:[~2012-12-10 19:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-08  8:15 [PATCH V2] ARM: bcm281xx: Add timer driver Christian Daudt
2012-12-08 23:44 ` Olof Johansson
2012-12-10 19:05   ` John Stultz [this message]
2012-12-11 17:39     ` Christian Daudt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50C63285.1030605@us.ibm.com \
    --to=johnstul@us.ibm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.