OMAP: hwmod: Fixes and OMAP2&3 data update
Subsystems (5)
cover OMAP: hwmod: Fixes and OMAP2&3 data update
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(-)
PATCH 1/2 OMAP: hwmod: Fix the missing braces
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/
--- arch/arm/mach-omap2/omap_hwmod.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/omap_hwmod.c +6 -3
@@ -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; }
Signature · 1 line
1.6.1.3
PATCH 2/2 OMAP2&3: hwmod: Remove _hwmod prefix in name string
In reply to Benoit CoussonIn 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.
--- 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(-)
arch/arm/mach-omap2/omap_hwmod_2420_data.c +3 -3
@@ -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),
arch/arm/mach-omap2/omap_hwmod_2430_data.c +3 -3
@@ -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),
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +4 -4
@@ -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),
Signature · 1 line
1.6.1.3
Quoted 8 lines · 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.
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
Quoted 16 lines
Benoit Cousson (2):
OMAP: hwmod: Fix the missing braces OMAP2&3: hwmod: Remove_hwmodprefix in name stringarch/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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html