From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/7] arm: omap: Move dmtimer.h out of plat-omap
Date: Thu, 9 Nov 2017 06:52:23 -0800 [thread overview]
Message-ID: <20171109145223.GB28152@atomide.com> (raw)
In-Reply-To: <008c2d8b-6f76-882d-fc70-8fd4204c49d5@ti.com>
* Keerthy <j-keerthy@ti.com> [171109 08:09]:
>
>
> On Thursday 09 November 2017 09:55 AM, Keerthy wrote:
> >
> >
> > On Wednesday 08 November 2017 10:12 PM, Tony Lindgren wrote:
> >> * Keerthy <j-keerthy@ti.com> [171108 12:31]:
> >>> The header file is currently under plat-omap directory
> >>> under arch/omap. Move this out to an accessible place.
> >>>
> >>> No Code changes done to the header file.
> >>
> >> Some of the dmtimer functions are in this header to optimize the
> >> size of the system timer code. Can you please check if some of them
> >> can be left out of dmtimer.h and be made private to mach-omap1/timer.c
> >> and mach-omap2/timer.c?
> >
> > Okay. I will try to clean that as well.
>
> Tony,
>
> Only function that i could push out of dmtimer.h was
> __omap_dm_timer_override_errata
>
> which is being currently called by mach-omap2/timer.c alone.
Hmm OK thanks for checking.
> Rest all are used both my dmtimer.c as well as mach-omap2/timer.c.
> Here is the list:
>
> __omap_dm_timer_read
> __omap_dm_timer_write
> __omap_dm_timer_init_regs
> __omap_dm_timer_enable_posted
> __omap_dm_timer_stop
> __omap_dm_timer_load_start
> __omap_dm_timer_int_enable
> __omap_dm_timer_read_counter
> __omap_dm_timer_write_status
>
> Any preferences on moving them to dmtimer.c or leaving them in header file?
How about we make the system timer functions and these header
functions private to the dmtimer.c. Then we can have the SoC specific
system timer functions be selected based on comaptible value like
drivers typically do :)
I think only the SoC specific init code should be left in
arch/arm/mach-omap[12]/timer.c.
Regards,
Tony
next prev parent reply other threads:[~2017-11-09 14:52 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 12:28 [PATCH v2 0/7] omap: dmtimer: Move driver out of plat-omap Keerthy
2017-11-08 12:28 ` [PATCH v2 1/7] clocksource: dmtimer: Remove all the exports Keerthy
2017-11-09 16:13 ` Sebastian Reichel
2017-11-08 12:28 ` [PATCH v2 2/7] arm: omap: Move dmtimer.h out of plat-omap Keerthy
2017-11-08 16:42 ` Tony Lindgren
2017-11-09 4:25 ` Keerthy
2017-11-09 8:06 ` Keerthy
2017-11-09 14:52 ` Tony Lindgren [this message]
2017-11-09 16:16 ` Sebastian Reichel
2017-11-08 12:28 ` [PATCH v2 3/7] arm: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource Keerthy
2017-11-09 16:17 ` Sebastian Reichel
2017-11-08 12:28 ` [PATCH v2 4/7] dmtimer: Add timer ops to the platform data structure Keerthy
2017-11-09 16:27 ` Sebastian Reichel
2017-11-08 12:28 ` [PATCH v2 5/7] clocksource: dmtimer: Populate the timer ops to the pdata Keerthy
2017-11-09 16:28 ` Sebastian Reichel
2017-11-08 12:28 ` [PATCH v2 6/7] pwm: pwm-omap-dmtimer: Adapt driver to utilize dmtimer pdata ops Keerthy
2017-11-09 16:28 ` Sebastian Reichel
2017-11-09 21:15 ` Grygorii Strashko
2017-11-08 12:28 ` [PATCH v2 7/7] arm: omap: pdata-quirks: Remove unused timer pdata Keerthy
2017-11-09 16:29 ` Sebastian Reichel
2017-11-08 12:51 ` [PATCH v2 0/7] omap: dmtimer: Move driver out of plat-omap Ladislav Michl
2017-11-09 4:31 ` Keerthy
2017-11-09 4:41 ` Keerthy
2017-11-08 22:57 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171109145223.GB28152@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).