opp: backport changes from v5.19-rc8
Bugzilla: https://bugzilla.redhat.com/2112113
Tested: Sanity boot on ampere-mtsnow-altra-03 and qti-snapdragon-02-sip2 with kernel-automotive-9.
Omitted-Fix: 39bd2b6a3783 ("dt-bindings: Improve phandle-array schemas")
dt-bindings wide change extending outside opp scope
Omitted-Fix: 75a3a99a5a98 ("PM: EM: Change the order of arguments in the .active_power() callback")
callback refactoring introduced with get_cost(). EM wide change.
Omitted-Fix: 00ce3873f730 ("opp: Add apis to retrieve opps with interconnect bandwidth")
introduced via qcom/bwmon, which is out-of-scope for this change set.
Downstream with devicetree and OPP will fail to boot with the introduction of:
-
e25f7592 ("PM: domains: Add support for 'required-opps' to set default perf state")
without including: - 020d86fc0df8 ("opp: Don't print an error if required-opps is missing")
Backport other opp devicetree fixes and changes while at it, as well as a few
core fixes.
Signed-off-by: Eric Chanudet echanude@redhat.com
Edited by Eric Chanudet