* [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
@ 2013-11-20 2:15 Axel Lin
2013-11-20 9:22 ` Uwe Kleine-König
2013-12-10 13:24 ` Uwe Kleine-König
0 siblings, 2 replies; 7+ messages in thread
From: Axel Lin @ 2013-11-20 2:15 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner; +Cc: Uwe Kleine-König, linux-kernel
The time-efm32 driver uses the clocksource MMIO functions.
Thus it needs to select CLKSRC_MMIO in Kconfig.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
This fixes build error when COMPILE_TEST=y.
drivers/built-in.o: In function `efm32_clocksource_init':
drivers/clocksource/time-efm32.c:162: undefined reference to `clocksource_mmio_init'
drivers/built-in.o: In function `efm32_timer_init':
drivers/clocksource/time-efm32.c:274: undefined reference to `clocksource_mmio_readl_up'
make: *** [vmlinux] Error 1
drivers/clocksource/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index bdb953e..99763eb 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -75,6 +75,7 @@ config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
config CLKSRC_EFM32
bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
+ select CLKSRC_MMIO
default ARCH_EFM32
help
Support to use the timers of EFM32 SoCs as clock source and clock
--
1.8.1.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
2013-11-20 2:15 [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO Axel Lin
@ 2013-11-20 9:22 ` Uwe Kleine-König
2013-12-10 13:24 ` Uwe Kleine-König
1 sibling, 0 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2013-11-20 9:22 UTC (permalink / raw)
To: Axel Lin; +Cc: Daniel Lezcano, Thomas Gleixner, linux-kernel
On Wed, Nov 20, 2013 at 10:15:11AM +0800, Axel Lin wrote:
> The time-efm32 driver uses the clocksource MMIO functions.
> Thus it needs to select CLKSRC_MMIO in Kconfig.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
Good catch. I selected CLKSRC_MMIO from MACH_EFM32 (still out-of-tree)
but of course this is wrong.
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
2013-11-20 2:15 [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO Axel Lin
2013-11-20 9:22 ` Uwe Kleine-König
@ 2013-12-10 13:24 ` Uwe Kleine-König
2013-12-10 13:29 ` Daniel Lezcano
1 sibling, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2013-12-10 13:24 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner; +Cc: Axel Lin, linux-kernel, kernel
On Wed, Nov 20, 2013 at 10:15:11AM +0800, Axel Lin wrote:
> The time-efm32 driver uses the clocksource MMIO functions.
> Thus it needs to select CLKSRC_MMIO in Kconfig.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> This fixes build error when COMPILE_TEST=y.
> drivers/built-in.o: In function `efm32_clocksource_init':
> drivers/clocksource/time-efm32.c:162: undefined reference to `clocksource_mmio_init'
> drivers/built-in.o: In function `efm32_timer_init':
> drivers/clocksource/time-efm32.c:274: undefined reference to `clocksource_mmio_readl_up'
> make: *** [vmlinux] Error 1
>
> drivers/clocksource/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> index bdb953e..99763eb 100644
> --- a/drivers/clocksource/Kconfig
> +++ b/drivers/clocksource/Kconfig
> @@ -75,6 +75,7 @@ config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
> config CLKSRC_EFM32
> bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
> depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
> + select CLKSRC_MMIO
> default ARCH_EFM32
I'd like to send support for arch/arm/mach-efm32 for 3.14. Formerly I
had ARCH_EFM32 select CLKSRC_MMIO, but having it here is obviously the
correct thing to do. So my possibilities are:
a) I take this patch and apply mach-efm32 on top of it; or
b) you take it early enough for me into 3.13-rc to base mach-efm32 on
it; or
c) I send mach-efm32 with ARCH_EFM32 selecting CLKSRC_MMIO and drop
this select later; or
d) we life with the build failure (i.e.
drivers/clocksource/time-efm32.c:274: undefined reference to
`clocksource_mmio_readl_up' and the same for clocksource_mmio_init
in a different line) until this patch and mine come together.
I don't like d), but don't have a clear favorite between a), b) and c).
What do you think? Probably a) is the easiest for all if there are no
merge conflicts (I don't expect any). In this case I'd need Daniel's or
Thomas' ack.
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
2013-12-10 13:24 ` Uwe Kleine-König
@ 2013-12-10 13:29 ` Daniel Lezcano
2013-12-10 16:05 ` Uwe Kleine-König
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Lezcano @ 2013-12-10 13:29 UTC (permalink / raw)
To: Uwe Kleine-König, Thomas Gleixner; +Cc: Axel Lin, linux-kernel, kernel
On 12/10/2013 02:24 PM, Uwe Kleine-König wrote:
> On Wed, Nov 20, 2013 at 10:15:11AM +0800, Axel Lin wrote:
>> The time-efm32 driver uses the clocksource MMIO functions.
>> Thus it needs to select CLKSRC_MMIO in Kconfig.
>>
>> Signed-off-by: Axel Lin <axel.lin@ingics.com>
>> ---
>> This fixes build error when COMPILE_TEST=y.
>> drivers/built-in.o: In function `efm32_clocksource_init':
>> drivers/clocksource/time-efm32.c:162: undefined reference to `clocksource_mmio_init'
>> drivers/built-in.o: In function `efm32_timer_init':
>> drivers/clocksource/time-efm32.c:274: undefined reference to `clocksource_mmio_readl_up'
>> make: *** [vmlinux] Error 1
>>
>> drivers/clocksource/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
>> index bdb953e..99763eb 100644
>> --- a/drivers/clocksource/Kconfig
>> +++ b/drivers/clocksource/Kconfig
>> @@ -75,6 +75,7 @@ config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
>> config CLKSRC_EFM32
>> bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
>> depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
>> + select CLKSRC_MMIO
>> default ARCH_EFM32
> I'd like to send support for arch/arm/mach-efm32 for 3.14. Formerly I
> had ARCH_EFM32 select CLKSRC_MMIO, but having it here is obviously the
> correct thing to do. So my possibilities are:
>
> a) I take this patch and apply mach-efm32 on top of it; or
> b) you take it early enough for me into 3.13-rc to base mach-efm32 on
> it; or
I sent the PR with this patch. If everything is ok, it should be in the
next -rc.
> c) I send mach-efm32 with ARCH_EFM32 selecting CLKSRC_MMIO and drop
> this select later; or
> d) we life with the build failure (i.e.
> drivers/clocksource/time-efm32.c:274: undefined reference to
> `clocksource_mmio_readl_up' and the same for clocksource_mmio_init
> in a different line) until this patch and mine come together.
>
> I don't like d), but don't have a clear favorite between a), b) and c).
> What do you think? Probably a) is the easiest for all if there are no
> merge conflicts (I don't expect any). In this case I'd need Daniel's or
> Thomas' ack.
>
> Thanks
> Uwe
>
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
2013-12-10 13:29 ` Daniel Lezcano
@ 2013-12-10 16:05 ` Uwe Kleine-König
2013-12-16 20:08 ` Daniel Lezcano
0 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2013-12-10 16:05 UTC (permalink / raw)
To: Daniel Lezcano; +Cc: Thomas Gleixner, Axel Lin, linux-kernel, kernel
Hello Daniel,
On Tue, Dec 10, 2013 at 02:29:42PM +0100, Daniel Lezcano wrote:
> On 12/10/2013 02:24 PM, Uwe Kleine-König wrote:
> >On Wed, Nov 20, 2013 at 10:15:11AM +0800, Axel Lin wrote:
> >>The time-efm32 driver uses the clocksource MMIO functions.
> >>Thus it needs to select CLKSRC_MMIO in Kconfig.
> >>
> >>Signed-off-by: Axel Lin <axel.lin@ingics.com>
> >>---
> >>This fixes build error when COMPILE_TEST=y.
> >>drivers/built-in.o: In function `efm32_clocksource_init':
> >>drivers/clocksource/time-efm32.c:162: undefined reference to `clocksource_mmio_init'
> >>drivers/built-in.o: In function `efm32_timer_init':
> >>drivers/clocksource/time-efm32.c:274: undefined reference to `clocksource_mmio_readl_up'
> >>make: *** [vmlinux] Error 1
> >>
> >> drivers/clocksource/Kconfig | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >>diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> >>index bdb953e..99763eb 100644
> >>--- a/drivers/clocksource/Kconfig
> >>+++ b/drivers/clocksource/Kconfig
> >>@@ -75,6 +75,7 @@ config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
> >> config CLKSRC_EFM32
> >> bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
> >> depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
> >>+ select CLKSRC_MMIO
> >> default ARCH_EFM32
> >I'd like to send support for arch/arm/mach-efm32 for 3.14. Formerly I
> >had ARCH_EFM32 select CLKSRC_MMIO, but having it here is obviously the
> >correct thing to do. So my possibilities are:
> >
> > a) I take this patch and apply mach-efm32 on top of it; or
> > b) you take it early enough for me into 3.13-rc to base mach-efm32 on
> > it; or
>
> I sent the PR with this patch. If everything is ok, it should be in
> the next -rc.
ok. Thanks for your quick reply.
It would be great if your tree were included in linux-next. Don't you
think this is feasible?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
2013-12-10 16:05 ` Uwe Kleine-König
@ 2013-12-16 20:08 ` Daniel Lezcano
2013-12-16 20:54 ` Uwe Kleine-König
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Lezcano @ 2013-12-16 20:08 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Thomas Gleixner, Axel Lin, linux-kernel, kernel, Ingo Molnar
On 12/10/2013 05:05 PM, Uwe Kleine-König wrote:
> Hello Daniel,
>
> On Tue, Dec 10, 2013 at 02:29:42PM +0100, Daniel Lezcano wrote:
>> On 12/10/2013 02:24 PM, Uwe Kleine-König wrote:
>>> On Wed, Nov 20, 2013 at 10:15:11AM +0800, Axel Lin wrote:
>>>> The time-efm32 driver uses the clocksource MMIO functions.
>>>> Thus it needs to select CLKSRC_MMIO in Kconfig.
[ ... ]
>> I sent the PR with this patch. If everything is ok, it should be in
>> the next -rc.
> ok. Thanks for your quick reply.
>
> It would be great if your tree were included in linux-next. Don't you
> think this is feasible?
Well, yes it could be a good idea. But if you are suggesting to use
linux-next for the fixes, that should be already taken into account with
the #auto-latest branch of tip.
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
2013-12-16 20:08 ` Daniel Lezcano
@ 2013-12-16 20:54 ` Uwe Kleine-König
0 siblings, 0 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2013-12-16 20:54 UTC (permalink / raw)
To: Daniel Lezcano
Cc: Thomas Gleixner, Axel Lin, linux-kernel, kernel, Ingo Molnar
Hello Daniel,
On Mon, Dec 16, 2013 at 09:08:21PM +0100, Daniel Lezcano wrote:
> On 12/10/2013 05:05 PM, Uwe Kleine-König wrote:
> >On Tue, Dec 10, 2013 at 02:29:42PM +0100, Daniel Lezcano wrote:
> >>I sent the PR with this patch. If everything is ok, it should be in
> >>the next -rc.
> >ok. Thanks for your quick reply.
It seems to have missed 3.13-rc4 btw :-(
> >It would be great if your tree were included in linux-next. Don't you
> >think this is feasible?
>
> Well, yes it could be a good idea. But if you are suggesting to use
> linux-next for the fixes, that should be already taken into account
> with the #auto-latest branch of tip.
I might be wrong, but it seems that the window when the patches are in
your tree but not yet in tip is big. At least I hit that window I think
three times already.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-12-16 20:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-20 2:15 [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO Axel Lin
2013-11-20 9:22 ` Uwe Kleine-König
2013-12-10 13:24 ` Uwe Kleine-König
2013-12-10 13:29 ` Daniel Lezcano
2013-12-10 16:05 ` Uwe Kleine-König
2013-12-16 20:08 ` Daniel Lezcano
2013-12-16 20:54 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox