Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1569609

Re: [PATCH] clockevents: Add a clkevt-of mechanism like clksrc-of

From Alexander Kochetkov <al.kochet@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] clockevents: Add a clkevt-of mechanism like clksrc-of
Date 2017-01-30 12:10 +0100
Message-ID <t5i0q-3gH-17@gated-at.bofh.it> (permalink)
References <t3uS6-1Hz-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> 25 янв. 2017 г., в 15:21, Daniel Lezcano <daniel.lezcano@linaro.org> написал(а):
> 
> Hopefully, that can help to do some housework in the directory, perhaps
> split the drivers in to entities, for example:
> 	- clksrc-rockchip.c
> 	- clkevt-rockchip.c
> 
> Also, it gives the possibility to declare clocksources separately in the
> DT and then use a clocksource from IP block while while clockevents are
> used from another IP block.

Hello, Daniel!

There is no way to do declare clocksources and clockevents in the DT now.
As I understood, it is incorrect to add properties like ‘clocksource’ or ‘clockevent’
to timer entries because this sounds like linux specific configuration. While
device tree must contain only hardware description. Thus many timer
drivers has implicit assumption: first DT timer became clocksource, second
clockevent.

If we can find the way to describe timer role in the DT, than many timer drivers
could be rewritten such a way.

Also, there is timers what use single IP to provide clocksource and clockevent
at the same time. So splitting them into two files result into more complex code.

Regards,
Alexander.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] clockevents: Add a clkevt-of mechanism like clksrc-of Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-01-25 13:30 +0100
  Re: [PATCH] clockevents: Add a clkevt-of mechanism like clksrc-of Alexander Kochetkov <al.kochet@gmail.com> - 2017-01-30 12:10 +0100
    Re: [PATCH] clockevents: Add a clkevt-of mechanism like clksrc-of Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-01-30 12:40 +0100

csiph-web