interconnect: Introduce xlate_extended() callback
authorGeorgi Djakov <georgi.djakov@linaro.org>
Thu, 3 Sep 2020 13:31:28 +0000 (16:31 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 8 Sep 2020 13:28:58 +0000 (16:28 +0300)
commit1521e22bfa12db6225002ba3b040572a78dff996
treee4230c7ea71ab725e913bac74e315dc25a63877d
parentcb30e0292db258a681f3e2334ebfb337c8863482
interconnect: Introduce xlate_extended() callback

Currently there is the xlate() callback, which is used by providers for
mapping the nodes from phandle arguments. That's fine for simple mappings,
but the phandle arguments could contain an additional data, such as tag
information. Let's create another callback xlate_extended() for the cases
where providers want also populate the path tag data.

Tested-by: Sibi Sankar <sibis@codeaurora.org>
Reviewed-by: Sibi Sankar <sibis@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20200903133134.17201-2-georgi.djakov@linaro.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c
include/linux/interconnect-provider.h