[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2b8e9679-dade-4448-8c16-362de455ead0@AM1EHSMHS002.ehs.local>
Date: Wed, 31 Oct 2012 08:48:38 +0000
From: Michal Simek <michal.simek@...inx.com>
To: Arnd Bergmann <arnd@...db.de>,
"monstr@...str.eu" <monstr@...str.eu>
CC: Josh Cartwright <josh.cartwright@...com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"arm@...nel.org" <arm@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: RE: [PATCH] ARM: zynq: move ttc timer code to drivers/clocksource
> -----Original Message-----
> From: Arnd Bergmann [mailto:arnd@...db.de]
> Sent: Tuesday, October 30, 2012 11:37 PM
> To: monstr@...str.eu
> Cc: Josh Cartwright; Michal Simek; linux-arm-kernel@...ts.infradead.org; linux-
> kernel@...r.kernel.org; arm@...nel.org; Thomas Gleixner
> Subject: Re: [PATCH] ARM: zynq: move ttc timer code to drivers/clocksource
>
> On Tuesday 30 October 2012, Michal Simek wrote:
> > On 10/29/2012 07:56 PM, Josh Cartwright wrote:
> > > Suggested cleanup by Arnd Bergmann. Move the ttc timer.c code to
> > > drivers/clocksource, and out of the mach-zynq directory.
> > >
> > > The common.h (which only held the timer declaration) was renamed to
> > > xilinx_ttc.h and moved into include/linux.
> > >
> > > Signed-off-by: Josh Cartwright <josh.cartwright@...com>
> > > Cc: Arnd Bergmann <arnd@...db.de>
> > > ---
> > > arch/arm/mach-zynq/Makefile | 2 +-
> > > arch/arm/mach-zynq/common.c | 2 +-
> > > arch/arm/mach-zynq/common.h | 24 ----
> > > arch/arm/mach-zynq/timer.c | 298 ---------------------------------------
> > > drivers/clocksource/Makefile | 1 +
> > > drivers/clocksource/xilinx_ttc.c | 297
> ++++++++++++++++++++++++++++++++++++++
> > > include/linux/xilinx_ttc.h | 24 ++++
> > > 7 files changed, 324 insertions(+), 324 deletions(-)
>
> When you submit a patch that moves files around, please use the '-M' flag to git-
> format-patch so we can see the actual changes instead of a file being removed
> and another one added.
>
> > > delete mode 100644 arch/arm/mach-zynq/common.h
> > > delete mode 100644 arch/arm/mach-zynq/timer.c
> > > create mode 100644 drivers/clocksource/xilinx_ttc.c
> > > create mode 100644 include/linux/xilinx_ttc.h
> >
> > Really?
> > If yes. shouldn't be there any better naming convention especially for
> > headers. linux/clocksource/xilinx_ttc.h.
>
> Moving it is certainly the right direction, but I think we need a better way to
> handle those forward declarations. "struct sys_timer" is actually an ARM specific
> structure, so we might just want to add all the forward declarations for the
> timers into arch/arm/include/asm/mach/time.h. It's not ideal to do it like that,
> but I think it's much better than having a new globally visible header for each
> timer that is used on ARM.
>
> Eventually, we might want to do something similar to what we are discussing for
> the top-level IRQ controllers at the moment, where we just autodetect them
> from DT if possible, so we don't need to have any pointer to the timer from arch
> code at all.
Ok. It means that it is not big deal to keep timer as is in mach and when we
have any generic solution we can follow it. This patch just move the code out
of mach-zynq.
It should be done across architecture because for example timer I use for microblaze
can be used by zynq too, also by Xilinx ppc.
Thanks,
Michal
--
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