]> git.baikalelectronics.ru Git - kernel.git/commitdiff
interconnect: imx: set src node
authorPeng Fan <peng.fan@nxp.com>
Sun, 3 Jul 2022 09:11:27 +0000 (17:11 +0800)
committerGeorgi Djakov <djakov@kernel.org>
Fri, 15 Jul 2022 14:53:15 +0000 (17:53 +0300)
When set QoS for a icc path, only set dst icc node is not enough,
also need to set src icc node.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20220703091132.1412063-6-peng.fan@oss.nxp.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/imx/imx.c

index 4406ec45fa90f9b142f5bb1830811e6411f004b1..9b83f69945d831fe90039ab0feb9592675e5aafd 100644 (file)
@@ -61,6 +61,12 @@ static int imx_icc_node_set(struct icc_node *node)
 
 static int imx_icc_set(struct icc_node *src, struct icc_node *dst)
 {
+       int ret;
+
+       ret = imx_icc_node_set(src);
+       if (ret)
+               return ret;
+
        return imx_icc_node_set(dst);
 }