Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1992ad8e authored by Odelu Kukatla's avatar Odelu Kukatla
Browse files

msm: msm_bus: Add node clock support for each bus node



node_a_clk support is required for each master/slave to
get the clock handle and vote for required frequency.

Change-Id: Ib01d74af7ba2b5e85e6e57b3b3ade5c260990c2c
Signed-off-by: default avatarOdelu Kukatla <okukatla@codeaurora.org>
parent 5e83c3ed
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014-2016, 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2016, 2018-2019, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "AXI: %s(): " fmt, __func__
@@ -651,6 +651,15 @@ static int get_bus_node_device_data(
			of_node_put(qos_clk_node);
		}

		node_device->clk[ACTIVE_CTX].clk = of_clk_get_by_name(dev_node,
							"node_a_clk");

		if (IS_ERR_OR_NULL(node_device->clk[ACTIVE_CTX].clk))
			dev_dbg(&pdev->dev,
				 "%s:Failed to get bus clk for bus%d ctx%d",
				__func__, node_device->node_info->id,
								ACTIVE_CTX);

		node_device->clk[DUAL_CTX].clk = of_clk_get_by_name(dev_node,
							"node_clk");