Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

coresight: Make clock sequence consistent

Since atclk is enabled after pclk during the probe phase, this commit
maintains the same sequence for the runtime resume flow.

Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250731-arm_cs_fix_clock_v4-v6-9-1dfe10bb3f6f@arm.com

authored by

Leo Yan and committed by
Suzuki K Poulose
7b20a4fa ba6b61fa

+12 -12
+3 -3
drivers/hwtracing/coresight/coresight-funnel.c
··· 297 297 { 298 298 struct funnel_drvdata *drvdata = dev_get_drvdata(dev); 299 299 300 - if (drvdata && !IS_ERR(drvdata->atclk)) 301 - clk_prepare_enable(drvdata->atclk); 302 - 303 300 if (drvdata && !IS_ERR_OR_NULL(drvdata->pclk)) 304 301 clk_prepare_enable(drvdata->pclk); 302 + 303 + if (drvdata && !IS_ERR(drvdata->atclk)) 304 + clk_prepare_enable(drvdata->atclk); 305 305 return 0; 306 306 } 307 307 #endif
+3 -3
drivers/hwtracing/coresight/coresight-replicator.c
··· 335 335 { 336 336 struct replicator_drvdata *drvdata = dev_get_drvdata(dev); 337 337 338 - if (drvdata && !IS_ERR(drvdata->atclk)) 339 - clk_prepare_enable(drvdata->atclk); 340 - 341 338 if (drvdata && !IS_ERR_OR_NULL(drvdata->pclk)) 342 339 clk_prepare_enable(drvdata->pclk); 340 + 341 + if (drvdata && !IS_ERR(drvdata->atclk)) 342 + clk_prepare_enable(drvdata->atclk); 343 343 return 0; 344 344 } 345 345 #endif
+3 -3
drivers/hwtracing/coresight/coresight-stm.c
··· 969 969 { 970 970 struct stm_drvdata *drvdata = dev_get_drvdata(dev); 971 971 972 - if (drvdata && !IS_ERR(drvdata->atclk)) 973 - clk_prepare_enable(drvdata->atclk); 974 - 975 972 if (drvdata && !IS_ERR_OR_NULL(drvdata->pclk)) 976 973 clk_prepare_enable(drvdata->pclk); 974 + 975 + if (drvdata && !IS_ERR(drvdata->atclk)) 976 + clk_prepare_enable(drvdata->atclk); 977 977 return 0; 978 978 } 979 979 #endif
+3 -3
drivers/hwtracing/coresight/coresight-tpiu.c
··· 218 218 { 219 219 struct tpiu_drvdata *drvdata = dev_get_drvdata(dev); 220 220 221 - if (drvdata && !IS_ERR(drvdata->atclk)) 222 - clk_prepare_enable(drvdata->atclk); 223 - 224 221 if (drvdata && !IS_ERR_OR_NULL(drvdata->pclk)) 225 222 clk_prepare_enable(drvdata->pclk); 223 + 224 + if (drvdata && !IS_ERR(drvdata->atclk)) 225 + clk_prepare_enable(drvdata->atclk); 226 226 return 0; 227 227 } 228 228 #endif