Re: [PATCH v2] PM / OPP: Fix parsing of opp-microvolt and opp-microamp properties
On Friday, December 18, 2015 07:21:35 AM Viresh Kumar wrote: > On 17-12-15, 19:04, Bartlomiej Zolnierkiewicz wrote: > > Commit 01fb4d3c39d3 ("PM / OPP: Parse 'opp--' > > bindings") broke support for parsing standard opp-microvolt and > > opp-microamp properties. Fix it by setting 'name' string to > > proper value for !prop cases. > > > > Cc: Viresh Kumar > > Cc: Lee Jones > > Cc: Rafael J. Wysocki > > Fixes: 01fb4d3c39d3 ("PM / OPP: Parse 'opp-- 'bindings") > > Signed-off-by: Bartlomiej Zolnierkiewicz > > --- > > v2: > > - rework the changes as requested by Viresh > > Acked-by: Viresh Kumar Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2] PM / OPP: Fix parsing of opp-microvolt and opp-microamp properties
On 17-12-15, 19:04, Bartlomiej Zolnierkiewicz wrote: > Commit 01fb4d3c39d3 ("PM / OPP: Parse 'opp--' > bindings") broke support for parsing standard opp-microvolt and > opp-microamp properties. Fix it by setting 'name' string to > proper value for !prop cases. > > Cc: Viresh Kumar > Cc: Lee Jones > Cc: Rafael J. Wysocki > Fixes: 01fb4d3c39d3 ("PM / OPP: Parse 'opp-- 'bindings") > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > v2: > - rework the changes as requested by Viresh Acked-by: Viresh Kumar -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH v2] PM / OPP: Fix parsing of opp-microvolt and opp-microamp properties
Commit 01fb4d3c39d3 ("PM / OPP: Parse 'opp--' bindings") broke support for parsing standard opp-microvolt and opp-microamp properties. Fix it by setting 'name' string to proper value for !prop cases. Cc: Viresh Kumar Cc: Lee Jones Cc: Rafael J. Wysocki Fixes: 01fb4d3c39d3 ("PM / OPP: Parse 'opp-- 'bindings") Signed-off-by: Bartlomiej Zolnierkiewicz --- v2: - rework the changes as requested by Viresh This fixes Exynos4x12 cpufreq-dt suppport regression present in linux-pm/linux-next tree. Rafael, please apply. Thank you. drivers/base/power/opp/core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: b/drivers/base/power/opp/core.c === --- a/drivers/base/power/opp/core.c 2015-12-17 18:57:27.358981831 +0100 +++ b/drivers/base/power/opp/core.c 2015-12-17 18:58:04.550982529 +0100 @@ -814,7 +814,7 @@ static int opp_parse_supplies(struct dev if (!prop) { /* Search for "opp-microvolt" */ - name[13] = '\0'; + sprintf(name, "opp-microvolt"); prop = of_find_property(opp->np, name, NULL); /* Missing property isn't a problem, but an invalid entry is */ @@ -855,7 +855,7 @@ static int opp_parse_supplies(struct dev if (!prop) { /* Search for "opp-microamp" */ - name[12] = '\0'; + sprintf(name, "opp-microamp"); prop = of_find_property(opp->np, name, NULL); } -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html