]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31ad06f061b7a80634ba27d45153b3b7a0a8854e
treee4230c7ea71ab725e913bac74e315dc25a63877d
parent5fcbf8a28f112158ea162f78e0e422a2014bce49
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