Linux-ARM-Kernel Archive on lore.kernel.org
 help / Atom feed
* [PATCH v2 1/1] irqchip: stm32-exti: add domain translate function
@ 2019-01-11 17:54 Loic Pallardy
  2019-01-16 11:15 ` Alexandre Torgue
  0 siblings, 1 reply; 2+ messages in thread
From: Loic Pallardy @ 2019-01-11 17:54 UTC (permalink / raw)
  To: tglx, jason, marc.zyngier, mcoquelin.stm32, alexandre.torgue
  Cc: Loic Pallardy, linux-kernel, linux-arm-kernel, linux-stm32

Domain translate function is needed to recover irq
configuration parameters from DT node

Fixes: 927abfc4461e ("irqchip/stm32: Add stm32mp1 support with hierarchy domain")

Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
---
Changes from v2:
- Use irq_domain_xlate_twocell helper
- Add Fixes: tag in commit message
---
 drivers/irqchip/irq-stm32-exti.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index 6edfd4bfa169..a93296b9b45d 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -822,6 +822,7 @@ static int __init stm32_exti_init(const struct stm32_exti_drv_data *drv_data,
 static const struct irq_domain_ops stm32_exti_h_domain_ops = {
 	.alloc	= stm32_exti_h_domain_alloc,
 	.free	= irq_domain_free_irqs_common,
+	.xlate = irq_domain_xlate_twocell,
 };
 
 static int
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 1/1] irqchip: stm32-exti: add domain translate function
  2019-01-11 17:54 [PATCH v2 1/1] irqchip: stm32-exti: add domain translate function Loic Pallardy
@ 2019-01-16 11:15 ` Alexandre Torgue
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Torgue @ 2019-01-16 11:15 UTC (permalink / raw)
  To: Loic Pallardy, tglx, jason, marc.zyngier, mcoquelin.stm32
  Cc: linux-kernel, linux-arm-kernel, linux-stm32

Hi Loic

On 1/11/19 6:54 PM, Loic Pallardy wrote:
> Domain translate function is needed to recover irq
> configuration parameters from DT node
> 
> Fixes: 927abfc4461e ("irqchip/stm32: Add stm32mp1 support with hierarchy domain")
> 
> Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
> ---
> Changes from v2:
> - Use irq_domain_xlate_twocell helper
> - Add Fixes: tag in commit message
> ---
>   drivers/irqchip/irq-stm32-exti.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
> index 6edfd4bfa169..a93296b9b45d 100644
> --- a/drivers/irqchip/irq-stm32-exti.c
> +++ b/drivers/irqchip/irq-stm32-exti.c
> @@ -822,6 +822,7 @@ static int __init stm32_exti_init(const struct stm32_exti_drv_data *drv_data,
>   static const struct irq_domain_ops stm32_exti_h_domain_ops = {
>   	.alloc	= stm32_exti_h_domain_alloc,
>   	.free	= irq_domain_free_irqs_common,
> +	.xlate = irq_domain_xlate_twocell,
>   };
>   
>   static int
> 

Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>

regards
Alex

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-11 17:54 [PATCH v2 1/1] irqchip: stm32-exti: add domain translate function Loic Pallardy
2019-01-16 11:15 ` Alexandre Torgue

Linux-ARM-Kernel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/0 linux-arm-kernel/git/0.git
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/1 linux-arm-kernel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-kernel linux-arm-kernel/ https://lore.kernel.org/linux-arm-kernel \
		linux-arm-kernel@lists.infradead.org infradead-linux-arm-kernel@archiver.kernel.org
	public-inbox-index linux-arm-kernel


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-arm-kernel


AGPL code for this site: git clone https://public-inbox.org/ public-inbox