[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201306040957.27920.heiko@sntech.de>
Date: Tue, 4 Jun 2013 09:57:27 +0200
From: Heiko Stübner <heiko@...ech.de>
To: Baruch Siach <baruch@...s.co.il>
Cc: Jamie Iles <jamie@...ieiles.com>, Arnd Bergmann <arnd@...db.de>,
devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Rob Herring <rob.herring@...xeda.com>,
John Stultz <john.stultz@...aro.org>,
Dinh Nguyen <dinguyen@...era.com>,
Grant Likely <grant.likely@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 3/3] clocksource: dw_apb_timer_of: use clocksource_of_init
Am Dienstag, 4. Juni 2013, 06:36:20 schrieb Baruch Siach:
> Hi Heiko,
>
> On Mon, Jun 03, 2013 at 09:59:55PM +0200, Heiko Stübner wrote:
> > dw_apb_timer_init used to search the devicetree for matching timer
> > devices, making calls to it from board files necessary.
> >
> > Change the dw_apb_timer_init to work with CLOCKSOURCE_OF_DECLARE.
> > With this change the function gets called once for each timer node
> > and tracks these number of calls to attach clockevent and clocksource
> > devices to the nodes.
> >
> > Also remove the calls to dw_apb_timer_init from all previous users, as
> > clocksource_of_init is the default for init_time now.
> >
> > Tested on the upcoming rk3066 code.
> >
> > Signed-off-by: Heiko Stuebner <heiko@...ech.de>
> > Acked-by: Rob Herring <rob.herring@...xeda.com>
> > Acked-by: Arnd Bergmann <arnd@...db.de>
> > ---
> >
> > arch/arm/mach-picoxcell/Kconfig | 1 +
> > arch/arm/mach-picoxcell/common.c | 2 -
> > arch/arm/mach-socfpga/Kconfig | 1 +
> > arch/arm/mach-socfpga/socfpga.c | 2 -
> > drivers/clocksource/dw_apb_timer_of.c | 41
> > ++++++++++++++++----------------- include/linux/dw_apb_timer.h
> > | 1 -
> > 6 files changed, 22 insertions(+), 26 deletions(-)
> >
> > diff --git a/arch/arm/mach-picoxcell/Kconfig
> > b/arch/arm/mach-picoxcell/Kconfig index 13bae78..3ef6bbe 100644
> > --- a/arch/arm/mach-picoxcell/Kconfig
> > +++ b/arch/arm/mach-picoxcell/Kconfig
> > @@ -6,6 +6,7 @@ config ARCH_PICOXCELL
> >
> > select CPU_V6K
> > select DW_APB_TIMER
> > select DW_APB_TIMER_OF
> >
> > + select CLKSRC_OF
>
> Shouldn't DW_APB_TIMER 'select CLKSRC_OF if OF' instead of selecting is for
> each and every platform? While at it we can do the same to DW_APB_TIMER_OF.
if anything DW_APB_TIMER_OF should select both DW_APB_TIMER and 'CLKSRC_OF if
OF', as the base DW_APB_TIMER_OF is the platform glue, that uses DW_APB_TIMER
internally.
But otherwise sounds sensible to not duplicate these selects everywhere.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists