PM / OPP: Fix parsing of opp-microvolt and opp-microamp properties
Subsystems (5)
PATCH v2 1/1 PM / OPP: Fix parsing of opp-microvolt and opp-microamp properties
Commit 01fb4d3c39d3 ("PM / OPP: Parse 'opp-<prop>-<name>' bindings") broke support for parsing standard opp-microvolt and opp-microamp properties. Fix it by setting 'name' string to proper value for !prop cases.
---
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(-)
drivers/base/power/opp/core.c +2 -2
@@ -814,7 +814,7 @@ static int opp_parse_supplies(struct devif (!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 devif (!prop) {/* Search for "opp-microamp" */ - name[12 ] ='\0' ; +sprintf (name,"opp-microamp" ); prop =of_find_property (opp->np, name,NULL ); }
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Commit
01fb4d3c39d3("PM / OPP: Parse 'opp-<prop>-<name>' bindings") broke support for parsing standard opp-microvolt and opp-microamp properties. Fix it by setting 'name' string to proper value for !prop cases.
Quoted 8 lines
Cc Viresh Kumar <[email protected]>Cc Lee Jones <[email protected]>Cc Rafael J. Wysocki <[email protected]>Fixes 01fb4d3c39d3 ("PM / OPP: Parse 'opp-<prop>-<name> 'bindings")Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>---
v2:
- rework the changes as requested by Viresh
Signature · 1 line
viresh
Rafael J. Wysocki
AppliedQuoted 15 lines · Viresh Kumar
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Commit
01fb4d3c39d3("PM / OPP: Parse 'opp-<prop>-<name>' bindings") broke support for parsing standard opp-microvolt and opp-microamp properties. Fix it by setting 'name' string to proper value for !prop cases.Quoted 8 lines
Cc Viresh Kumar <[email protected]>Cc Lee Jones <[email protected]>Cc Rafael J. Wysocki <[email protected]>Fixes 01fb4d3c39d3 ("PM / OPP: Parse 'opp-<prop>-<name> 'bindings")Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>---
v2:
- rework the changes as requested by Viresh
Quoted 1 line
Acked-by Viresh Kumar <[email protected]>
Applied, thanks!