interconnect: Add bulk API helpers
authorGeorgi Djakov <georgi.djakov@linaro.org>
Wed, 29 Jul 2020 12:34:39 +0000 (15:34 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 8 Sep 2020 13:28:49 +0000 (16:28 +0300)
commitb41b0ce5982693e27307cfe0aaf49bc8e3a20900
treee616cf1187c5588ad3bf1ea9ce235270673b239b
parent91e045b93db79a2ef66e045ad0d1f8f9d348e1f4
interconnect: Add bulk API helpers

There are drivers which just need to get multiple interconnect paths,
request some predefined amounts of bandwidth and then just toggle the
paths between enabled/disabled state.

The aim of this patch is simplify the above and to allow drivers to put
all the path names and bandwidth data into a single static icc_bulk_data
table and call the icc_bulk_* functions on that table in order to scale
all the interconnect paths in parallel.

Suggested-by: Evan Green <evgreen@chromium.org>
Suggested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200729123439.9961-1-georgi.djakov@linaro.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/Makefile
drivers/interconnect/bulk.c [new file with mode: 0644]
include/linux/interconnect.h