From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Bolle Subject: Re: [PATCH v2 04/18] clocksource: Add ARM System timer driver Date: Fri, 20 Feb 2015 22:48:28 +0100 Message-ID: <1424468908.24292.10.camel@x220> References: <1424455277-29983-1-git-send-email-mcoquelin.stm32@gmail.com> <1424455277-29983-5-git-send-email-mcoquelin.stm32@gmail.com> <20150220195437.GT19388@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20150220195437.GT19388@pengutronix.de> Sender: linux-doc-owner@vger.kernel.org To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= Cc: Maxime Coquelin , afaerber@suse.de, geert@linux-m68k.org, Rob Herring , Philipp Zabel , Jonathan Corbet , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Daniel Lezcano , Thomas Gleixner , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , Andrew Morton , "David S. Miller" , Mauro Carvalho Chehab , Joe Perches , Antti Palosaari , Tejun Heo , Will Deacon , Nik List-Id: linux-api@vger.kernel.org On Fri, 2015-02-20 at 20:54 +0100, Uwe Kleine-K=C3=B6nig wrote: > On Fri, Feb 20, 2015 at 07:01:03PM +0100, Maxime Coquelin wrote: > > This patch adds clocksource support for ARMv7-M's System timer, > > also known as SysTick. > >=20 > > Signed-off-by: Maxime Coquelin > > --- > > drivers/clocksource/Kconfig | 7 ++++ > > drivers/clocksource/Makefile | 1 + > > drivers/clocksource/armv7m_systick.c | 78 ++++++++++++++++++++++++= ++++++++++++ > > 3 files changed, 86 insertions(+) > > create mode 100644 drivers/clocksource/armv7m_systick.c > >=20 > > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kcon= fig > > index fc01ec2..fb6011e 100644 > > --- a/drivers/clocksource/Kconfig > > +++ b/drivers/clocksource/Kconfig > > @@ -124,6 +124,13 @@ config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK > > help > > Use ARM global timer clock source as sched_clock > > =20 > > +config ARMV7M_SYSTICK > > + bool > I assume this symbol is enabled later in the series. Yes, I noticed it was selected in 14/18 ("ARM: Add STM32 family machine"). > Would it make sense > to allow enabing the symbol for compile test coverage? >=20 > > + select CLKSRC_OF if OF > What happens if ARMV7M_SYSTICK=3Dy but OF=3Dn? Doesn't the driver fai= l to > compile? >=20 > > + select CLKSRC_MMIO > > + help > > + This options enables support for the ARMv7M system timer unit > the right spelling is ARMv7-M. This Kconfig entry has no prompt, so no one is going to see this text during make *config. Perhaps this should be made a comment. In that cas= e the right spelling should still be used. Thanks, Paul Bolle