interconnect: Add a name to struct icc_path
authorGeorgi Djakov <georgi.djakov@linaro.org>
Thu, 28 Nov 2019 14:18:17 +0000 (16:18 +0200)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Mon, 16 Dec 2019 07:25:23 +0000 (09:25 +0200)
commit05309830e1f869f939e283576dd3684313390062
tree4f4f6e0539d361c7f804b4c9262245fac623c4da
parentdd018a9cf9108f9c7d924f6fe09aed745e78a67e
interconnect: Add a name to struct icc_path

When debugging interconnect things, it turned out that saving the path
name and including it in the traces is quite useful, especially for
devices with multiple paths.

For the path name we use the one specified in DT, or if we use platform
data, the name is based on the source and destination node names.

Suggested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c
drivers/interconnect/internal.h