]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: catu: Support atclk
authorLeo Yan <leo.yan@arm.com>
Thu, 31 Jul 2025 12:23:38 +0000 (13:23 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 23 Sep 2025 13:14:12 +0000 (14:14 +0100)
commit5483624effea2e893dc0df6248253a6a2a085451
tree045b6ded07a20c98c15cd344ce4fd7b4c49581a8
parent8a79026926b329d4ab0c6d0921373a80ec8aab6e
coresight: catu: Support atclk

The atclk is an optional clock for the CoreSight CATU, but the driver
misses to initialize it.

This change enables atclk in probe of the CATU driver, and dynamically
control the clock during suspend and resume.

The checks for driver data and clocks in suspend and resume are not
needed, remove them.  Add error handling in the resume function.

Fixes: fcacb5c154ba ("coresight: Introduce support for Coresight Address Translation Unit")
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-2-1dfe10bb3f6f@arm.com
drivers/hwtracing/coresight/coresight-catu.c
drivers/hwtracing/coresight/coresight-catu.h