From: Jon Hunter <jon-hunter@ti.com>
To: Jon Hunter <jon-hunter@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
Tony Lindgren <tony@atomide.com>,
Tarun Kanti DebBarma <tarun.kanti@ti.com>
Subject: Re: [PATCH V2 09/11] ARM: OMAP: Remove timer function pointer for context loss counter
Date: Mon, 4 Jun 2012 13:49:33 -0500 [thread overview]
Message-ID: <4FCD033D.4030708@ti.com> (raw)
In-Reply-To: <1338830555-20469-10-git-send-email-jon-hunter@ti.com>
On 06/04/2012 12:22 PM, Jon Hunter wrote:
> For OMAP2+ devices, a function pointer that returns the number of times a timer
> power domain has lost context is passed to the dmtimer driver. This function
> pointer is only populated for OMAP2+ devices and it is pointing to a platform
> function. Given that this is a platform function, we can simplify the code by
> removing the function pointer and referencing the function directly. We can use
> the OMAP_TIMER_ALWON flag to determine if we need to call this function for
> OMAP1 and OMAP2+ devices.
>
> The benefit of this change is the we can remove the function pointer from the
> platform data and simplifies the dmtimer migration to device-tree.
>
> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
> ---
> arch/arm/mach-omap1/timer.c | 4 ++--
> arch/arm/mach-omap2/timer.c | 3 ---
> arch/arm/plat-omap/dmtimer.c | 26 ++++++++++----------------
> arch/arm/plat-omap/include/plat/dmtimer.h | 4 +---
> 4 files changed, 13 insertions(+), 24 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/timer.c b/arch/arm/mach-omap1/timer.c
> index b4bf48c..aa81593 100644
> --- a/arch/arm/mach-omap1/timer.c
> +++ b/arch/arm/mach-omap1/timer.c
> @@ -140,8 +140,8 @@ static int __init omap1_dm_timer_init(void)
> }
>
> pdata->set_timer_src = omap1_dm_timer_set_src;
> - pdata->needs_manual_reset = 1;
> - pdata->timer_capability = OMAP_TIMER_ALWON;
> + pdata->timer_capability = OMAP_TIMER_ALWON |
> + OMAP_TIMER_NEEDS_RESET;
Some how I have managed to squash 2 patches together here when rebasing
to 3.5-rc1, ugh! I will re-send this series. Sorry for the noise.
Jon
next prev parent reply other threads:[~2012-06-04 18:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 17:22 [PATCH V2 00/11] ARM: OMAP: DMTIMER clean-up and fixes in preparation for device-tree Jon Hunter
2012-06-04 17:22 ` [PATCH V2 01/11] ARM: OMAP: Remove unnecessary clk structure Jon Hunter
2012-06-04 17:22 ` [PATCH V2 02/11] ARM: OMAP2+: Remove unused max number of timers definition Jon Hunter
2012-06-04 17:22 ` [PATCH V2 03/11] ARM: OMAP2+: Add dmtimer platform function to reserve systimers Jon Hunter
2012-06-04 17:22 ` [PATCH V2 04/11] ARM: OMAP: Add DMTIMER capability variable to represent timer features Jon Hunter
2012-06-04 17:22 ` [PATCH V2 05/11] ARM: OMAP2+: HWMOD: Correct timer device attributes Jon Hunter
2012-06-04 17:22 ` [PATCH V2 06/11] ARM: OMAP1: Fix dmtimer support Jon Hunter
2012-06-04 17:22 ` [PATCH V2 07/11] ARM: OMAP2+: Fix external clock support for dmtimers Jon Hunter
2012-06-04 17:22 ` [PATCH V2 08/11] ARM: OMAP: Remove loses_context variable from timer platform data Jon Hunter
2012-06-04 17:22 ` [PATCH V2 09/11] ARM: OMAP: Remove timer function pointer for context loss counter Jon Hunter
2012-06-04 18:49 ` Jon Hunter [this message]
2012-06-04 17:22 ` [PATCH V2 10/11] ARM: OMAP2+: Move dmtimer clock set function to dmtimer driver Jon Hunter
2012-06-04 17:22 ` [PATCH V2 11/11] ARM: OMAP2+: Simplify dmtimer clock aliases Jon Hunter
2012-06-04 17:29 ` [PATCH V2 00/11] ARM: OMAP: DMTIMER clean-up and fixes in preparation for device-tree Jon Hunter
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=4FCD033D.4030708@ti.com \
--to=jon-hunter@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=tarun.kanti@ti.com \
--cc=tony@atomide.com \
/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