[PATCH v2 07/25] coresight: trbe: Convert to new IRQ affinity retrieval API

Suzuki K Poulose suzuki.poulose at arm.com
Mon Sep 15 02:30:59 PDT 2025


On 15/09/2025 09:56, Marc Zyngier wrote:
> Now that the relevant interrupt controllers are equipped with
> a callback returning the affinity of per-CPU interrupts, switch
> the TRBE driver over to this new method.
> 
> Signed-off-by: Marc Zyngier <maz at kernel.org>

Assuming this goes via irqchip tree,

Acked-by: Suzuki K Poulose <suzuki.poulose at arm.com>


> ---
>   drivers/hwtracing/coresight/coresight-trbe.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c
> index 8267dd1a2130d..c512f8faa6012 100644
> --- a/drivers/hwtracing/coresight/coresight-trbe.c
> +++ b/drivers/hwtracing/coresight/coresight-trbe.c
> @@ -1472,9 +1472,10 @@ static void arm_trbe_remove_cpuhp(struct trbe_drvdata *drvdata)
>   static int arm_trbe_probe_irq(struct platform_device *pdev,
>   			      struct trbe_drvdata *drvdata)
>   {
> +	const struct cpumask *affinity;
>   	int ret;
>   
> -	drvdata->irq = platform_get_irq(pdev, 0);
> +	drvdata->irq = platform_get_irq_affinity(pdev, 0, &affinity);
>   	if (drvdata->irq < 0) {
>   		pr_err("IRQ not found for the platform device\n");
>   		return drvdata->irq;
> @@ -1485,8 +1486,7 @@ static int arm_trbe_probe_irq(struct platform_device *pdev,
>   		return -EINVAL;
>   	}
>   
> -	if (irq_get_percpu_devid_partition(drvdata->irq, &drvdata->supported_cpus))
> -		return -EINVAL;
> +	cpumask_copy(&drvdata->supported_cpus, affinity);
>   
>   	drvdata->handle = alloc_percpu(struct perf_output_handle *);
>   	if (!drvdata->handle)




More information about the linux-arm-kernel mailing list