interconnect: Add sync state support
authorGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 25 Aug 2020 17:01:51 +0000 (20:01 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Fri, 18 Sep 2020 05:56:52 +0000 (08:56 +0300)
commitb1d681d8d32499bcf284462d92aeb5f9fe72bf5b
tree8c82999b36d2c99a0dc601556bcc2b48ebc9f0fd
parentcc80d10d6fcf6f47a2a3efe2c4139e50906a4764
interconnect: Add sync state support

The bootloaders often do some initial configuration of the interconnects
in the system and we want to keep this configuration until all consumers
have probed and expressed their bandwidth needs. This is because we don't
want to change the configuration by starting to disable unused paths until
every user had a chance to request the amount of bandwidth it needs.

To accomplish this we will implement an interconnect specific sync_state
callback which will synchronize (aggregate and set) the current bandwidth
settings when all consumers have been probed.

Link: https://lore.kernel.org/r/20200825170152.6434-3-georgi.djakov@linaro.org
Reviewed-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c
include/linux/interconnect-provider.h