From f15f425842d57e912422f22225e77df23aec927e Mon Sep 17 00:00:00 2001 From: Vivek Aknurwar Date: Thu, 14 Jul 2022 16:58:00 -0700 Subject: [PATCH] clk: qcom: clk-debug: Port public clk_dump APIs Add public APIs that should have been ported along with commit 7af068c1bf78 ("clk: qcom: clk-debug: Add snapshot from msm-5.10"). Change-Id: I8a3b74b027da1e67375d77fa296be9bb9041dad9 Signed-off-by: Vivek Aknurwar --- include/linux/clk/qcom.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/linux/clk/qcom.h b/include/linux/clk/qcom.h index 1ae1f16cca7a..0f28cd586cc1 100644 --- a/include/linux/clk/qcom.h +++ b/include/linux/clk/qcom.h @@ -1,12 +1,14 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. */ #ifndef __LINUX_CLK_QCOM_H_ #define __LINUX_CLK_QCOM_H_ -#include +#include +#include enum branch_mem_flags { CLKFLAG_RETAIN_PERIPH, @@ -19,5 +21,9 @@ enum branch_mem_flags { int qcom_clk_get_voltage(struct clk *clk, unsigned long rate); int qcom_clk_set_flags(struct clk *clk, unsigned long flags); +void qcom_clk_dump(struct clk *clk, struct regulator *regulator, + bool calltrace); +void qcom_clk_bulk_dump(int num_clks, struct clk_bulk_data *clks, + struct regulator *regulator, bool calltrace); #endif /* __LINUX_CLK_QCOM_H_ */