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

Commit 743fc536 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 2828b2b3 1992ad8e
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");