interconnect: Add support for path tags
authorGeorgi Djakov <georgi.djakov@linaro.org>
Fri, 9 Aug 2019 12:13:23 +0000 (15:13 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 13 Aug 2019 20:02:44 +0000 (23:02 +0300)
commit127ab2cc5f19692efe422935267b9db0845b2b04
tree104e5154b6166e0c87251ab2ad9948154b809e38
parentd45331b00ddb179e291766617259261c112db872
interconnect: Add support for path tags

Consumers may have use cases with different bandwidth requirements based
on the system or driver state. The consumer driver can append a specific
tag to the path and pass this information to the interconnect platform
driver to do the aggregation based on this state.

Introduce icc_set_tag() function that will allow the consumers to append
an optional tag to each path. The aggregation of these tagged paths is
platform specific.

Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c
drivers/interconnect/qcom/sdm845.c
include/linux/interconnect-provider.h
include/linux/interconnect.h