[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140507151907.GB9502@atomide.com>
Date: Wed, 7 May 2014 08:19:08 -0700
From: Tony Lindgren <tony@...mide.com>
To: Joel Fernandes <joelf@...com>
Cc: Linux OMAP List <linux-omap@...r.kernel.org>,
Linux ARM Kernel List <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 01/26] ARM: OMAP: dmtimer: Remove setting of clk parent
indirectly through platform hook
* Joel Fernandes <joelf@...com> [140424 14:44]:
> There is a platform specific hook just for OMAP1 to set its clk parent. Remove
> this hook and have OMAP1 set its parent in omap1_dm_timer_init. If OMAP1 is
> ever migrated to clock framework, the correct way to do this would be through
> clk_set_parent like other platforms.
>
> Signed-off-by: Joel Fernandes <joelf@...com>
> ---
> arch/arm/mach-omap1/timer.c | 8 +++++++-
> arch/arm/plat-omap/dmtimer.c | 8 +++-----
> include/linux/platform_data/dmtimer-omap.h | 2 --
> 3 files changed, 10 insertions(+), 8 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/timer.c b/arch/arm/mach-omap1/timer.c
> index bde7a35..4b9c604 100644
> --- a/arch/arm/mach-omap1/timer.c
> +++ b/arch/arm/mach-omap1/timer.c
> @@ -140,7 +140,13 @@ static int __init omap1_dm_timer_init(void)
> goto err_free_pdata;
> }
>
> - pdata->set_timer_src = omap1_dm_timer_set_src;
> + /*
> + * Since OMAP1 doesn't support clock framework, set timer clock
> + * source to 32KHz here instead of expecting it to be set by
> + * dmtimer code.
> + */
> + omap1_dm_timer_set_src(pdev, 0x01);
> +
> pdata->timer_capability = OMAP_TIMER_ALWON |
> OMAP_TIMER_NEEDS_RESET | OMAP_TIMER_HAS_DSP_IRQ;
>
This does not sound right, omap1 does support clock framework just fine.
It is not using the common clock framework though.
This breaks omap_dm_timer_set_source() for sure. Setting the source
during init is not a right solution here. Probably best to keep the
pdata hook around, drivers can support pdata and DT data together
just fine.
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists