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

Commit 07f69910 authored by Odelu Kukatla's avatar Odelu Kukatla Committed by Gerrit - the friendly Code Review server
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 34e7e997
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -656,6 +656,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");