[v2,1/1] irqchip: stm32-exti: add domain translate function

Message ID 1547229271-121399-1-git-send-email-loic.pallardy@st.com
State New
Headers show
Series
  • [v2,1/1] irqchip: stm32-exti: add domain translate function
Related show

Commit Message

Loic PALLARDY Jan. 11, 2019, 5:54 p.m.
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(+)

-- 
2.7.4

Comments

Alexandre Torgue Jan. 16, 2019, 11:15 a.m. | #1
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

Patch

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