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:32:25 +0000 (13:32 +0200)
commit019387e3c21f16a93c5fd2d2a1a5c4511d828e7b
tree219636d5b69c66183fea70ddfea3ff17fafdaad2
parent39382972e727dbd4d69427fdedc4fbc25542b46b
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