* [PATCHv3 0/17] OMAP dmtimer hwmod
@ 2010-09-21 8:50 Tarun Kanti DebBarma
2010-09-22 19:01 ` G, Manjunath Kondaiah
2010-09-30 19:43 ` Cousson, Benoit
0 siblings, 2 replies; 4+ messages in thread
From: Tarun Kanti DebBarma @ 2010-09-21 8:50 UTC (permalink / raw)
To: linux-omap
This patch series implements dmtimer hwmod.
Version 3
*********
(1) multi-line comment error correction
(2) provision to allow any of the available dmtimers as early timers
instead of restricting them to millisecond timers only.
(3) in 'struct omap_dmtimer{}' is_initialized flag is redundant and
so must be removed. if the element is found in the list it is already
initialized.
(4) remove 'found' flag in omap_dm_timer_request() and
omap_dm_timer_request_specific() functions.
this is not needed with alternate implementation.
(5) use .init_name to initialize device names so that it can be identified
during early boot as well. This is to avoid duplicate functions for clock
manipulations during early boot and later.
(6) remove redundant functions from mach-omap2 which are created just to
call pm functions like: pm_runtime_get_sync(),pm_runtime_put_sync(),..
and instead call them directly from plat-omap function api's.
(7) timer clock source names made part of hwmod database. source_clock[]
of type 'struct clk' is made part of platform data.
(8) clockactivity field initialized in hwmod database to preserve fclk
during idle. code which manipulate OCP config removed since they are
already taken care by hwmod framework.
(9) omap2_dm_timer_set_src() is optimized. Clock enable/disbale routines
moved to plat-omap layer and simplfied to the level so as not to sacrifice
intended functionality.
NOTE: During early boot clock management was requested to be placed upon
client drivers responsibility. this has not been done keeping in mind
that it would entail (i) multiple modifications of client drivers (ii) it
would violate the purpose of having a framework (open to debate).
(10) dmtimer register maps moved to hwmod database
Baseline
********
origin/pm-core
Test info
*********
OMAP4430SDP
OMAP3630SDP
OMAP3430SDP
OMAP2430SDP
OMAP1710SDP(Bootup)
Tarun Kanti DebBarma (17):
OMAP2/3/4:dmtimer:add device names to flck nodes
dmtimer: infrastructure to support hwmod
dmtimer: add omap2420 hwmod database
dmtimer: add omap2430 hwmod database
dmtimer: add omap3xxx hwmod database
dmtimer: add omap44xx hwmod database
dmtimer: use list instead of static array
dmtimer: register mappings moved to hwmod database
OMAP: dmtimer platform driver
OMAP1: dmtimer conversion to platform devices
dmtimer: early boot infrastructure
OMAP2/3/4: dmtimers: convert to platform devices
dmtimer: switch-over to platform device driver with hwmod
dmtimer pm_runtime support
dmtimer: OMAP4 specific change in plat-omap
dmtimer: clean redundant code
dmtimer: remove OCP config code from plat-omap
arch/arm/mach-omap1/Makefile | 2 +-
arch/arm/mach-omap1/dmtimer.c | 174 ++++++
arch/arm/mach-omap2/Makefile | 2 +-
arch/arm/mach-omap2/clock2420_data.c | 24 +-
arch/arm/mach-omap2/clock2430_data.c | 24 +-
arch/arm/mach-omap2/clock3xxx_data.c | 24 +-
arch/arm/mach-omap2/clock44xx_data.c | 22 +-
arch/arm/mach-omap2/dmtimer.c | 288 ++++++++++
arch/arm/mach-omap2/dmtimer.h | 25 +
arch/arm/mach-omap2/io.c | 2 +
arch/arm/mach-omap2/omap_hwmod_2420_data.c | 739 +++++++++++++++++++++++++
arch/arm/mach-omap2/omap_hwmod_2430_data.c | 737 +++++++++++++++++++++++++
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 815 ++++++++++++++++++++++++++++
arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 796 +++++++++++++++++++++++++++
arch/arm/mach-omap2/timer-gp.c | 1 -
arch/arm/plat-omap/dmtimer.c | 679 +++++++++++------------
arch/arm/plat-omap/include/plat/dmtimer.h | 80 +++
17 files changed, 4030 insertions(+), 404 deletions(-)
create mode 100644 arch/arm/mach-omap1/dmtimer.c
create mode 100644 arch/arm/mach-omap2/dmtimer.c
create mode 100644 arch/arm/mach-omap2/dmtimer.h
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCHv3 0/17] OMAP dmtimer hwmod
2010-09-21 8:50 [PATCHv3 0/17] OMAP dmtimer hwmod Tarun Kanti DebBarma
@ 2010-09-22 19:01 ` G, Manjunath Kondaiah
2010-09-30 19:43 ` Cousson, Benoit
1 sibling, 0 replies; 4+ messages in thread
From: G, Manjunath Kondaiah @ 2010-09-22 19:01 UTC (permalink / raw)
To: DebBarma, Tarun Kanti, linux-omap@vger.kernel.org
Here is checkpatch and sparse warnings for this series:
$./scripts/checkpatch.pl --strict timer_patches/*.patch
CHECK: multiple assignments should be avoided
#182: FILE: arch/arm/mach-omap1/dmtimer.c:127:
+ res[1].start = res[1].end = irq;
total: 0 errors, 0 warnings, 1 checks, 267 lines checked
timer_patches/PATCHv3-10-17-OMAP1-dmtimer-conversion-to-platform-devices.patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Sparse Warnings:
arch/arm/plat-omap/dmtimer.c: In function 'omap_dm_timer_reset':
arch/arm/plat-omap/dmtimer.c:152: warning: unused variable 'l'
include/trace/events/module.h:94:1: error: cannot size expression
kernel/module.c:149:6: error: symbol '__module_put_and_exit' redeclared with different type (originally declared at include/linux/module.h:460) - different modifiers
arch/arm/mach-omap2/timer-gp.c:50:22: warning: symbol 'gptimer_wakeup' was not declared. Should it be static?
arch/arm/mach-omap2/timer-gp.c:115:12: warning: symbol 'omap2_gp_clockevent_set_gptimer' was not declared. Should it be static?
arch/arm/mach-omap2/timer-gp.c:239:18: warning: symbol 'omap_timer' was not declared. Should it be static?
kernel/trace/trace.c:3971:15: warning: symbol 'tracing_dentry_percpu' was not declared. Should it be static?
kernel/trace/trace.c:915:9: warning: memset with byte count of 131076
arch/arm/mach-omap2/dmtimer.c:80:31: warning: symbol 'omap2_dmtimer_latency' was not declared. Should it be static?
arch/arm/mach-omap2/dmtimer.c:270:13: warning: symbol 'omap2_dm_timer_early_init' was not declared. Should it be static?
arch/arm/mach-omap2/pm-debug.c:170:15: warning: symbol 'pm_dbg_dir' was not declared. Should it be static?
WARNING: modpost: Found 7 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y
-Manjunath
> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org
> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Tarun
> Kanti DebBarma
> Sent: Tuesday, September 21, 2010 2:20 PM
> To: linux-omap@vger.kernel.org
> Subject: [PATCHv3 0/17] OMAP dmtimer hwmod
>
> This patch series implements dmtimer hwmod.
>
> Version 3
> *********
> (1) multi-line comment error correction
>
> (2) provision to allow any of the available dmtimers as early
> timers instead of restricting them to millisecond timers only.
>
> (3) in 'struct omap_dmtimer{}' is_initialized flag is
> redundant and so must be removed. if the element is found in
> the list it is already initialized.
>
> (4) remove 'found' flag in omap_dm_timer_request() and
> omap_dm_timer_request_specific() functions.
> this is not needed with alternate implementation.
>
> (5) use .init_name to initialize device names so that it can
> be identified during early boot as well. This is to avoid
> duplicate functions for clock manipulations during early boot
> and later.
>
> (6) remove redundant functions from mach-omap2 which are
> created just to call pm functions like:
> pm_runtime_get_sync(),pm_runtime_put_sync(),..
> and instead call them directly from plat-omap function api's.
>
> (7) timer clock source names made part of hwmod database.
> source_clock[] of type 'struct clk' is made part of platform data.
>
> (8) clockactivity field initialized in hwmod database to
> preserve fclk during idle. code which manipulate OCP config
> removed since they are already taken care by hwmod framework.
>
> (9) omap2_dm_timer_set_src() is optimized. Clock
> enable/disbale routines moved to plat-omap layer and
> simplfied to the level so as not to sacrifice intended functionality.
>
> NOTE: During early boot clock management was requested to be
> placed upon client drivers responsibility. this has not been
> done keeping in mind that it would entail (i) multiple
> modifications of client drivers (ii) it would violate the
> purpose of having a framework (open to debate).
>
> (10) dmtimer register maps moved to hwmod database
>
> Baseline
> ********
> origin/pm-core
>
> Test info
> *********
> OMAP4430SDP
> OMAP3630SDP
> OMAP3430SDP
> OMAP2430SDP
> OMAP1710SDP(Bootup)
>
>
> Tarun Kanti DebBarma (17):
> OMAP2/3/4:dmtimer:add device names to flck nodes
> dmtimer: infrastructure to support hwmod
> dmtimer: add omap2420 hwmod database
> dmtimer: add omap2430 hwmod database
> dmtimer: add omap3xxx hwmod database
> dmtimer: add omap44xx hwmod database
> dmtimer: use list instead of static array
> dmtimer: register mappings moved to hwmod database
> OMAP: dmtimer platform driver
> OMAP1: dmtimer conversion to platform devices
> dmtimer: early boot infrastructure
> OMAP2/3/4: dmtimers: convert to platform devices
> dmtimer: switch-over to platform device driver with hwmod
> dmtimer pm_runtime support
> dmtimer: OMAP4 specific change in plat-omap
> dmtimer: clean redundant code
> dmtimer: remove OCP config code from plat-omap
>
> arch/arm/mach-omap1/Makefile | 2 +-
> arch/arm/mach-omap1/dmtimer.c | 174 ++++++
> arch/arm/mach-omap2/Makefile | 2 +-
> arch/arm/mach-omap2/clock2420_data.c | 24 +-
> arch/arm/mach-omap2/clock2430_data.c | 24 +-
> arch/arm/mach-omap2/clock3xxx_data.c | 24 +-
> arch/arm/mach-omap2/clock44xx_data.c | 22 +-
> arch/arm/mach-omap2/dmtimer.c | 288 ++++++++++
> arch/arm/mach-omap2/dmtimer.h | 25 +
> arch/arm/mach-omap2/io.c | 2 +
> arch/arm/mach-omap2/omap_hwmod_2420_data.c | 739
> +++++++++++++++++++++++++
> arch/arm/mach-omap2/omap_hwmod_2430_data.c | 737
> +++++++++++++++++++++++++
> arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 815
> ++++++++++++++++++++++++++++
> arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 796
> +++++++++++++++++++++++++++
> arch/arm/mach-omap2/timer-gp.c | 1 -
> arch/arm/plat-omap/dmtimer.c | 679
> +++++++++++------------
> arch/arm/plat-omap/include/plat/dmtimer.h | 80 +++
> 17 files changed, 4030 insertions(+), 404 deletions(-)
> create mode 100644 arch/arm/mach-omap1/dmtimer.c create mode
> 100644 arch/arm/mach-omap2/dmtimer.c create mode 100644
> arch/arm/mach-omap2/dmtimer.h
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-omap" in the body of a message to
> majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCHv3 0/17] OMAP dmtimer hwmod
2010-09-21 8:50 [PATCHv3 0/17] OMAP dmtimer hwmod Tarun Kanti DebBarma
2010-09-22 19:01 ` G, Manjunath Kondaiah
@ 2010-09-30 19:43 ` Cousson, Benoit
2010-10-09 15:29 ` DebBarma, Tarun Kanti
1 sibling, 1 reply; 4+ messages in thread
From: Cousson, Benoit @ 2010-09-30 19:43 UTC (permalink / raw)
To: Tarun Kanti DebBarma; +Cc: linux-omap@vger.kernel.org
Hi Tarun,
On 9/21/2010 10:50 AM, Tarun Kanti DebBarma wrote:
> This patch series implements dmtimer hwmod.
Maybe the description should be a little bit more detailed:
Something like "Adapt dmtimer code to platform_driver using omap_device
/ omap_hwmod abstraction"
Benoit
>
> Version 3
> *********
> (1) multi-line comment error correction
>
> (2) provision to allow any of the available dmtimers as early timers
> instead of restricting them to millisecond timers only.
>
> (3) in 'struct omap_dmtimer{}' is_initialized flag is redundant and
> so must be removed. if the element is found in the list it is already
> initialized.
>
> (4) remove 'found' flag in omap_dm_timer_request() and
> omap_dm_timer_request_specific() functions.
> this is not needed with alternate implementation.
>
> (5) use .init_name to initialize device names so that it can be identified
> during early boot as well. This is to avoid duplicate functions for clock
> manipulations during early boot and later.
>
> (6) remove redundant functions from mach-omap2 which are created just to
> call pm functions like: pm_runtime_get_sync(),pm_runtime_put_sync(),..
> and instead call them directly from plat-omap function api's.
>
> (7) timer clock source names made part of hwmod database. source_clock[]
> of type 'struct clk' is made part of platform data.
>
> (8) clockactivity field initialized in hwmod database to preserve fclk
> during idle. code which manipulate OCP config removed since they are
> already taken care by hwmod framework.
>
> (9) omap2_dm_timer_set_src() is optimized. Clock enable/disbale routines
> moved to plat-omap layer and simplfied to the level so as not to sacrifice
> intended functionality.
>
> NOTE: During early boot clock management was requested to be placed upon
> client drivers responsibility. this has not been done keeping in mind
> that it would entail (i) multiple modifications of client drivers (ii) it
> would violate the purpose of having a framework (open to debate).
>
> (10) dmtimer register maps moved to hwmod database
>
> Baseline
> ********
> origin/pm-core
>
> Test info
> *********
> OMAP4430SDP
> OMAP3630SDP
> OMAP3430SDP
> OMAP2430SDP
> OMAP1710SDP(Bootup)
>
>
> Tarun Kanti DebBarma (17):
> OMAP2/3/4:dmtimer:add device names to flck nodes
> dmtimer: infrastructure to support hwmod
> dmtimer: add omap2420 hwmod database
> dmtimer: add omap2430 hwmod database
> dmtimer: add omap3xxx hwmod database
> dmtimer: add omap44xx hwmod database
> dmtimer: use list instead of static array
> dmtimer: register mappings moved to hwmod database
> OMAP: dmtimer platform driver
> OMAP1: dmtimer conversion to platform devices
> dmtimer: early boot infrastructure
> OMAP2/3/4: dmtimers: convert to platform devices
> dmtimer: switch-over to platform device driver with hwmod
> dmtimer pm_runtime support
> dmtimer: OMAP4 specific change in plat-omap
> dmtimer: clean redundant code
> dmtimer: remove OCP config code from plat-omap
>
> arch/arm/mach-omap1/Makefile | 2 +-
> arch/arm/mach-omap1/dmtimer.c | 174 ++++++
> arch/arm/mach-omap2/Makefile | 2 +-
> arch/arm/mach-omap2/clock2420_data.c | 24 +-
> arch/arm/mach-omap2/clock2430_data.c | 24 +-
> arch/arm/mach-omap2/clock3xxx_data.c | 24 +-
> arch/arm/mach-omap2/clock44xx_data.c | 22 +-
> arch/arm/mach-omap2/dmtimer.c | 288 ++++++++++
> arch/arm/mach-omap2/dmtimer.h | 25 +
> arch/arm/mach-omap2/io.c | 2 +
> arch/arm/mach-omap2/omap_hwmod_2420_data.c | 739 +++++++++++++++++++++++++
> arch/arm/mach-omap2/omap_hwmod_2430_data.c | 737 +++++++++++++++++++++++++
> arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 815 ++++++++++++++++++++++++++++
> arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 796 +++++++++++++++++++++++++++
> arch/arm/mach-omap2/timer-gp.c | 1 -
> arch/arm/plat-omap/dmtimer.c | 679 +++++++++++------------
> arch/arm/plat-omap/include/plat/dmtimer.h | 80 +++
> 17 files changed, 4030 insertions(+), 404 deletions(-)
> create mode 100644 arch/arm/mach-omap1/dmtimer.c
> create mode 100644 arch/arm/mach-omap2/dmtimer.c
> create mode 100644 arch/arm/mach-omap2/dmtimer.h
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCHv3 0/17] OMAP dmtimer hwmod
2010-09-30 19:43 ` Cousson, Benoit
@ 2010-10-09 15:29 ` DebBarma, Tarun Kanti
0 siblings, 0 replies; 4+ messages in thread
From: DebBarma, Tarun Kanti @ 2010-10-09 15:29 UTC (permalink / raw)
To: Cousson, Benoit; +Cc: linux-omap@vger.kernel.org
Benoit,
> -----Original Message-----
> From: Cousson, Benoit
> Sent: Friday, October 01, 2010 1:14 AM
> To: DebBarma, Tarun Kanti
> Cc: linux-omap@vger.kernel.org
> Subject: Re: [PATCHv3 0/17] OMAP dmtimer hwmod
>
> Hi Tarun,
>
> On 9/21/2010 10:50 AM, Tarun Kanti DebBarma wrote:
> > This patch series implements dmtimer hwmod.
>
> Maybe the description should be a little bit more detailed:
> Something like "Adapt dmtimer code to platform_driver using omap_device
> / omap_hwmod abstraction"
>
Sure, I will change as it definitely sounds more appropriate.
>
> >
> > Version 3
> > *********
> > (1) multi-line comment error correction
> >
> > (2) provision to allow any of the available dmtimers as early timers
> > instead of restricting them to millisecond timers only.
> >
> > (3) in 'struct omap_dmtimer{}' is_initialized flag is redundant and
> > so must be removed. if the element is found in the list it is already
> > initialized.
> >
> > (4) remove 'found' flag in omap_dm_timer_request() and
> > omap_dm_timer_request_specific() functions.
> > this is not needed with alternate implementation.
> >
> > (5) use .init_name to initialize device names so that it can be
> identified
> > during early boot as well. This is to avoid duplicate functions for
> clock
> > manipulations during early boot and later.
> >
> > (6) remove redundant functions from mach-omap2 which are created just to
> > call pm functions like: pm_runtime_get_sync(),pm_runtime_put_sync(),..
> > and instead call them directly from plat-omap function api's.
> >
> > (7) timer clock source names made part of hwmod database. source_clock[]
> > of type 'struct clk' is made part of platform data.
> >
> > (8) clockactivity field initialized in hwmod database to preserve fclk
> > during idle. code which manipulate OCP config removed since they are
> > already taken care by hwmod framework.
> >
> > (9) omap2_dm_timer_set_src() is optimized. Clock enable/disbale routines
> > moved to plat-omap layer and simplfied to the level so as not to
> sacrifice
> > intended functionality.
> >
> > NOTE: During early boot clock management was requested to be placed upon
> > client drivers responsibility. this has not been done keeping in mind
> > that it would entail (i) multiple modifications of client drivers (ii)
> it
> > would violate the purpose of having a framework (open to debate).
> >
> > (10) dmtimer register maps moved to hwmod database
> >
> > Baseline
> > ********
> > origin/pm-core
> >
> > Test info
> > *********
> > OMAP4430SDP
> > OMAP3630SDP
> > OMAP3430SDP
> > OMAP2430SDP
> > OMAP1710SDP(Bootup)
> >
> >
> > Tarun Kanti DebBarma (17):
> > OMAP2/3/4:dmtimer:add device names to flck nodes
> > dmtimer: infrastructure to support hwmod
> > dmtimer: add omap2420 hwmod database
> > dmtimer: add omap2430 hwmod database
> > dmtimer: add omap3xxx hwmod database
> > dmtimer: add omap44xx hwmod database
> > dmtimer: use list instead of static array
> > dmtimer: register mappings moved to hwmod database
> > OMAP: dmtimer platform driver
> > OMAP1: dmtimer conversion to platform devices
> > dmtimer: early boot infrastructure
> > OMAP2/3/4: dmtimers: convert to platform devices
> > dmtimer: switch-over to platform device driver with hwmod
> > dmtimer pm_runtime support
> > dmtimer: OMAP4 specific change in plat-omap
> > dmtimer: clean redundant code
> > dmtimer: remove OCP config code from plat-omap
> >
> > arch/arm/mach-omap1/Makefile | 2 +-
> > arch/arm/mach-omap1/dmtimer.c | 174 ++++++
> > arch/arm/mach-omap2/Makefile | 2 +-
> > arch/arm/mach-omap2/clock2420_data.c | 24 +-
> > arch/arm/mach-omap2/clock2430_data.c | 24 +-
> > arch/arm/mach-omap2/clock3xxx_data.c | 24 +-
> > arch/arm/mach-omap2/clock44xx_data.c | 22 +-
> > arch/arm/mach-omap2/dmtimer.c | 288 ++++++++++
> > arch/arm/mach-omap2/dmtimer.h | 25 +
> > arch/arm/mach-omap2/io.c | 2 +
> > arch/arm/mach-omap2/omap_hwmod_2420_data.c | 739
> +++++++++++++++++++++++++
> > arch/arm/mach-omap2/omap_hwmod_2430_data.c | 737
> +++++++++++++++++++++++++
> > arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 815
> ++++++++++++++++++++++++++++
> > arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 796
> +++++++++++++++++++++++++++
> > arch/arm/mach-omap2/timer-gp.c | 1 -
> > arch/arm/plat-omap/dmtimer.c | 679 +++++++++++---------
> ---
> > arch/arm/plat-omap/include/plat/dmtimer.h | 80 +++
> > 17 files changed, 4030 insertions(+), 404 deletions(-)
> > create mode 100644 arch/arm/mach-omap1/dmtimer.c
> > create mode 100644 arch/arm/mach-omap2/dmtimer.c
> > create mode 100644 arch/arm/mach-omap2/dmtimer.h
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-09 15:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-21 8:50 [PATCHv3 0/17] OMAP dmtimer hwmod Tarun Kanti DebBarma
2010-09-22 19:01 ` G, Manjunath Kondaiah
2010-09-30 19:43 ` Cousson, Benoit
2010-10-09 15:29 ` DebBarma, Tarun Kanti
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).