From: Jie Gan Date: Mon, 3 Mar 2025 03:29:22 +0000 (+0800) Subject: Coresight: Add support for new APB clock name X-Git-Tag: v6.15-rc1~78^2^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc872c5f527a07124b2ad92d8c70d11829f17ac9;p=thirdparty%2Fkernel%2Flinux.git Coresight: Add support for new APB clock name Add support for new APB clock-name. If the function fails to obtain the clock with the name "apb_pclk", it will attempt to acquire the clock with the name "apb". Reviewed-by: James Clark Signed-off-by: Jie Gan Signed-off-by: Suzuki K Poulose Link: https://lore.kernel.org/r/20250303032931.2500935-2-quic_jiegan@quicinc.com --- diff --git a/include/linux/coresight.h b/include/linux/coresight.h index c7614ccb32325..2e493d5288d8b 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -471,8 +471,11 @@ static inline struct clk *coresight_get_enable_apb_pclk(struct device *dev) int ret; pclk = clk_get(dev, "apb_pclk"); - if (IS_ERR(pclk)) - return NULL; + if (IS_ERR(pclk)) { + pclk = clk_get(dev, "apb"); + if (IS_ERR(pclk)) + return NULL; + } ret = clk_prepare_enable(pclk); if (ret) {