]> 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)
commitc30b61fb478edf0a8ed1be2a4e7e34c3d3a83dbf
treee4230c7ea71ab725e913bac74e315dc25a63877d
parentbf60359a66f4c07be72e1ff700b51a1e49d5e6b6
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