[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bb738a6b-815d-4fad-b73f-559f1ba8cd68@linaro.org>
Date: Mon, 27 Nov 2023 10:54:56 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Youngmin Nam <youngmin.nam@...sung.com>, tomasz.figa@...il.com,
s.nawrocki@...sung.com, alim.akhtar@...sung.com,
linus.walleij@...aro.org
Cc: linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, semen.protsenko@...aro.org
Subject: Re: [PATCH v2] pinctrl: samsung: add irq_set_affinity() for non wake
up external gpio interrupt
On 26/11/2023 10:46, Youngmin Nam wrote:
> To support affinity setting for non wake up external gpio interrupt,
> add irq_set_affinity callback using irq number from pinctrl driver data.
>
> Before this patch, changing the irq affinity of gpio interrupt is not possible:
>
> # cat /proc/irq/418/smp_affinity
> 3ff
> # echo 00f > /proc/irq/418/smp_affinity
Does this command succeed on your board?
> # cat /proc/irq/418/smp_affinity
> 3ff
> # cat /proc/interrupts
> CPU0 CPU1 CPU2 CPU3 ...
> 418: 3631 0 0 0 ...
>
> With this patch applied, it's possible to change irq affinity of gpio interrupt:
...
On which board did you test it?
> + if (parent)
> + return parent->chip->irq_set_affinity(parent, dest, force);
> +
I think there is a helper for it: irq_chip_set_affinity_parent().
Best regards,
Krzysztof
Powered by blists - more mailing lists