* [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update
@ 2010-05-24 21:23 Benoit Cousson
2010-05-24 21:23 ` [PATCH 1/2] OMAP: hwmod: Fix the missing braces Benoit Cousson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Benoit Cousson @ 2010-05-24 21:23 UTC (permalink / raw)
To: linux-omap, paul; +Cc: Benoit Cousson
Add the missing braces in hwmod fw and clean the data for
OMAP2420, 2430 and 3430.
The brace fix was tested on OMAP4 PAB.
Please note that the data changes were built for the 3 platforms
but not tested on board.
The series is based on l-o master.
Thanks,
Benoit
Benoit Cousson (2):
OMAP: hwmod: Fix the missing braces
OMAP2&3: hwmod: Remove _hwmod prefix in name string
arch/arm/mach-omap2/omap_hwmod.c | 9 ++++++---
arch/arm/mach-omap2/omap_hwmod_2420_data.c | 6 +++---
arch/arm/mach-omap2/omap_hwmod_2430_data.c | 6 +++---
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 8 ++++----
4 files changed, 16 insertions(+), 13 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] OMAP: hwmod: Fix the missing braces
2010-05-24 21:23 [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update Benoit Cousson
@ 2010-05-24 21:23 ` Benoit Cousson
2010-05-24 21:23 ` [PATCH 2/2] OMAP2&3: hwmod: Remove _hwmod prefix in name string Benoit Cousson
2010-06-17 15:48 ` [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update Kevin Hilman
2 siblings, 0 replies; 4+ messages in thread
From: Benoit Cousson @ 2010-05-24 21:23 UTC (permalink / raw)
To: linux-omap, paul; +Cc: Benoit Cousson, Sergei Shtylyov
As reported by Sergei, a couple of braces were missing after
the WARM removal patch.
[07/22] OMAP: hwmod: Replace WARN by pr_warning if clock lookup failed
https://patchwork.kernel.org/patch/100756/
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
---
arch/arm/mach-omap2/omap_hwmod.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index 95c9a5f..b7a4133 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -409,10 +409,11 @@ static int _init_main_clk(struct omap_hwmod *oh)
return 0;
oh->_clk = omap_clk_get_by_name(oh->main_clk);
- if (!oh->_clk)
+ if (!oh->_clk) {
pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n",
oh->name, oh->main_clk);
return -EINVAL;
+ }
if (!oh->_clk->clkdm)
pr_warning("omap_hwmod: %s: missing clockdomain for %s.\n",
@@ -444,10 +445,11 @@ static int _init_interface_clks(struct omap_hwmod *oh)
continue;
c = omap_clk_get_by_name(os->clk);
- if (!c)
+ if (!c) {
pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n",
oh->name, os->clk);
ret = -EINVAL;
+ }
os->_clk = c;
}
@@ -470,10 +472,11 @@ static int _init_opt_clks(struct omap_hwmod *oh)
for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) {
c = omap_clk_get_by_name(oc->clk);
- if (!c)
+ if (!c) {
pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n",
oh->name, oc->clk);
ret = -EINVAL;
+ }
oc->_clk = c;
}
--
1.6.1.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] OMAP2&3: hwmod: Remove _hwmod prefix in name string
2010-05-24 21:23 [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update Benoit Cousson
2010-05-24 21:23 ` [PATCH 1/2] OMAP: hwmod: Fix the missing braces Benoit Cousson
@ 2010-05-24 21:23 ` Benoit Cousson
2010-06-17 15:48 ` [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update Kevin Hilman
2 siblings, 0 replies; 4+ messages in thread
From: Benoit Cousson @ 2010-05-24 21:23 UTC (permalink / raw)
To: linux-omap, paul; +Cc: Benoit Cousson, Rajendra Nayak
In the lastest OMAP4 hwmod data file, the _hwmod was removed
in order to save some memory space and because it does not
bring a lot.
Align OMAP2420, 2430 and 3430 data files with the same convention.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Rajendra Nayak <rnayak@ti.com>
---
arch/arm/mach-omap2/omap_hwmod_2420_data.c | 6 +++---
arch/arm/mach-omap2/omap_hwmod_2430_data.c | 6 +++---
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 8 ++++----
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm/mach-omap2/omap_hwmod_2420_data.c
index e5530c5..73e27c7 100644
--- a/arch/arm/mach-omap2/omap_hwmod_2420_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_2420_data.c
@@ -59,7 +59,7 @@ static struct omap_hwmod_ocp_if *omap2420_l3_masters[] = {
/* L3 */
static struct omap_hwmod omap2420_l3_hwmod = {
- .name = "l3_hwmod",
+ .name = "l3_main",
.class = &l3_hwmod_class,
.masters = omap2420_l3_masters,
.masters_cnt = ARRAY_SIZE(omap2420_l3_masters),
@@ -89,7 +89,7 @@ static struct omap_hwmod_ocp_if *omap2420_l4_core_masters[] = {
/* L4 CORE */
static struct omap_hwmod omap2420_l4_core_hwmod = {
- .name = "l4_core_hwmod",
+ .name = "l4_core",
.class = &l4_hwmod_class,
.masters = omap2420_l4_core_masters,
.masters_cnt = ARRAY_SIZE(omap2420_l4_core_masters),
@@ -109,7 +109,7 @@ static struct omap_hwmod_ocp_if *omap2420_l4_wkup_masters[] = {
/* L4 WKUP */
static struct omap_hwmod omap2420_l4_wkup_hwmod = {
- .name = "l4_wkup_hwmod",
+ .name = "l4_wkup",
.class = &l4_hwmod_class,
.masters = omap2420_l4_wkup_masters,
.masters_cnt = ARRAY_SIZE(omap2420_l4_wkup_masters),
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c
index 0852d95..75b57c4 100644
--- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c
@@ -59,7 +59,7 @@ static struct omap_hwmod_ocp_if *omap2430_l3_masters[] = {
/* L3 */
static struct omap_hwmod omap2430_l3_hwmod = {
- .name = "l3_hwmod",
+ .name = "l3_main",
.class = &l3_hwmod_class,
.masters = omap2430_l3_masters,
.masters_cnt = ARRAY_SIZE(omap2430_l3_masters),
@@ -91,7 +91,7 @@ static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
/* L4 CORE */
static struct omap_hwmod omap2430_l4_core_hwmod = {
- .name = "l4_core_hwmod",
+ .name = "l4_core",
.class = &l4_hwmod_class,
.masters = omap2430_l4_core_masters,
.masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
@@ -111,7 +111,7 @@ static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
/* L4 WKUP */
static struct omap_hwmod omap2430_l4_wkup_hwmod = {
- .name = "l4_wkup_hwmod",
+ .name = "l4_wkup",
.class = &l4_hwmod_class,
.masters = omap2430_l4_wkup_masters,
.masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index 39b0c0e..3c9b903 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -70,7 +70,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_l3_masters[] = {
/* L3 */
static struct omap_hwmod omap3xxx_l3_hwmod = {
- .name = "l3_hwmod",
+ .name = "l3_main",
.class = &l3_hwmod_class,
.masters = omap3xxx_l3_masters,
.masters_cnt = ARRAY_SIZE(omap3xxx_l3_masters),
@@ -100,7 +100,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_l4_core_masters[] = {
/* L4 CORE */
static struct omap_hwmod omap3xxx_l4_core_hwmod = {
- .name = "l4_core_hwmod",
+ .name = "l4_core",
.class = &l4_hwmod_class,
.masters = omap3xxx_l4_core_masters,
.masters_cnt = ARRAY_SIZE(omap3xxx_l4_core_masters),
@@ -120,7 +120,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_l4_per_masters[] = {
/* L4 PER */
static struct omap_hwmod omap3xxx_l4_per_hwmod = {
- .name = "l4_per_hwmod",
+ .name = "l4_per",
.class = &l4_hwmod_class,
.masters = omap3xxx_l4_per_masters,
.masters_cnt = ARRAY_SIZE(omap3xxx_l4_per_masters),
@@ -140,7 +140,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_masters[] = {
/* L4 WKUP */
static struct omap_hwmod omap3xxx_l4_wkup_hwmod = {
- .name = "l4_wkup_hwmod",
+ .name = "l4_wkup",
.class = &l4_hwmod_class,
.masters = omap3xxx_l4_wkup_masters,
.masters_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_masters),
--
1.6.1.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update
2010-05-24 21:23 [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update Benoit Cousson
2010-05-24 21:23 ` [PATCH 1/2] OMAP: hwmod: Fix the missing braces Benoit Cousson
2010-05-24 21:23 ` [PATCH 2/2] OMAP2&3: hwmod: Remove _hwmod prefix in name string Benoit Cousson
@ 2010-06-17 15:48 ` Kevin Hilman
2 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2010-06-17 15:48 UTC (permalink / raw)
To: Benoit Cousson; +Cc: linux-omap, paul
Benoit Cousson <b-cousson@ti.com> writes:
> Add the missing braces in hwmod fw and clean the data for
> OMAP2420, 2430 and 3430.
>
> The brace fix was tested on OMAP4 PAB.
> Please note that the data changes were built for the 3 platforms
> but not tested on board.
>
> The series is based on l-o master.
Adding this series to my pm-wip/hwmods branch so it's included with all the
other hwmod changes being used for hwmod development.
Kevin
>
>
> Benoit Cousson (2):
> OMAP: hwmod: Fix the missing braces
> OMAP2&3: hwmod: Remove _hwmod prefix in name string
>
> arch/arm/mach-omap2/omap_hwmod.c | 9 ++++++---
> arch/arm/mach-omap2/omap_hwmod_2420_data.c | 6 +++---
> arch/arm/mach-omap2/omap_hwmod_2430_data.c | 6 +++---
> arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 8 ++++----
> 4 files changed, 16 insertions(+), 13 deletions(-)
>
> --
> 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-06-17 15:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-24 21:23 [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update Benoit Cousson
2010-05-24 21:23 ` [PATCH 1/2] OMAP: hwmod: Fix the missing braces Benoit Cousson
2010-05-24 21:23 ` [PATCH 2/2] OMAP2&3: hwmod: Remove _hwmod prefix in name string Benoit Cousson
2010-06-17 15:48 ` [PATCH 0/2] OMAP: hwmod: Fixes and OMAP2&3 data update Kevin Hilman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.