Re: [PATCH v8 10/10] OPP: Add support for setting interconnect-tags

From: Viresh Kumar
Date: Wed May 13 2020 - 02:43:33 EST


On 12-05-20, 15:53, Georgi Djakov wrote:
> From: Sibi Sankar <sibis@xxxxxxxxxxxxxx>
>
> Add support for setting tags on icc paths associated with
> the opp_table.
>
> Signed-off-by: Sibi Sankar <sibis@xxxxxxxxxxxxxx>
> Signed-off-by: Georgi Djakov <georgi.djakov@xxxxxxxxxx>
> ---

Applied this delta:

diff --git a/drivers/opp/of.c b/drivers/opp/of.c
index f71dc5eb0eba..a4972c94f428 100644
--- a/drivers/opp/of.c
+++ b/drivers/opp/of.c
@@ -346,7 +346,6 @@ int dev_pm_opp_of_find_icc_paths(struct device *dev,

count = of_count_phandle_with_args(np, "interconnects",
"#interconnect-cells");
- of_node_put(np);
if (count < 0) {
ret = 0;
goto put_np;
@@ -380,7 +379,7 @@ int dev_pm_opp_of_find_icc_paths(struct device *dev,
/* Set tag if present */
if (!of_property_read_u32_index(np, "interconnect-tags",
i, &tag))
- icc_set_tag(opp_table->paths[i], tag);
+ icc_set_tag(paths[i], tag);
}

if (opp_table) {

--
viresh