interconnect: Always call pre_aggregate before aggregate
authorMike Tipton <mdtipton@codeaurora.org>
Wed, 21 Jul 2021 17:54:30 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:22:18 +0000 (13:22 +0200)
commit22b4917c85af0f0ccdd9f4c4cdbcfe7442e2fca7
tree5f9d2112995aa8a52638dc54bccc4819a31a0657
parentccfe4f62ff9fc5db046767f50b53c180305da694
interconnect: Always call pre_aggregate before aggregate

commit 73606ba9242f8e32023699b500b7922b4cf2993c upstream.

The pre_aggregate callback isn't called in all cases before calling
aggregate. Add the missing calls so providers can rely on consistent
framework behavior.

Fixes: d3703b3e255f ("interconnect: Aggregate before setting initial bandwidth")
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Link: https://lore.kernel.org/r/20210721175432.2119-3-mdtipton@codeaurora.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/interconnect/core.c