RE: [PATCH 2/2] soc/fsl: add ftm alarm driver for ls1021a platform

From: Dongsheng.Wang@xxxxxxxxxxxxx
Date: Sat Sep 27 2014 - 22:55:35 EST


Thanks for your review. :)


> -----Original Message-----
> From: Kumar Gala [mailto:galak@xxxxxxxxxxxxxx]
> Sent: Friday, September 26, 2014 10:04 PM
> To: Wang Dongsheng-B40534
> Cc: Santosh Shilimkar; Sandeep Nair; Olof Johansson; shawn.guo@xxxxxxxxxx; Greg
> KH; Paul Walmsley; Arnd Bergmann; linux-kernel@xxxxxxxxxxxxxxx; Guo Shawn-R65073
> Subject: Re: [PATCH 2/2] soc/fsl: add ftm alarm driver for ls1021a platform
>
>
> On Sep 26, 2014, at 1:48 AM, Dongsheng Wang <dongsheng.wang@xxxxxxxxxxxxx> wrote:
>
> > From: Wang Dongsheng <dongsheng.wang@xxxxxxxxxxxxx>
> >
> > Only Ftm0 can be used when system going to deep sleep. So this driver
> > to support ftm0 as a wakeup source.
> >
> > Signed-off-by: Wang Dongsheng <dongsheng.wang@xxxxxxxxxxxxx>
>
> How does this differ from drivers/clocksource/fsl_ftm_timer.c

Fsl_ftm_timer.c is only for system to provide a clock driver. FTM ip-block can be used
by other functions such as PWM. I think we should not put all of functions into a .c file.
So ftm0 alarm function as a specific block driver in SOC dir.

>
> Why not extend that with the alarm functionality you need?
The framework of clocksource not provide sys interface to set alarm. And codes of ftm0-alarm
not touch on clocksource framework.

>
> Also, where is the DT binding spec for this (if you plan on having a separate
> driver)?
Yes, now only a driver. My DT depend on LS1 device tree patches, now LS1 DT is upstreaming but not apply.
After LS1 DT apply, I will add ftm alarm device node.

Regards,
-Dongsheng
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/