From bc0ba3c898e436146f1b5d5dc5632231d35a1c6f Mon Sep 17 00:00:00 2001 From: Raghavendra Kakarla Date: Sat, 8 Aug 2020 22:05:32 +0530 Subject: [PATCH 1/2] irqchip: mpm: Forward the irq type for the mpm parent This patch adds the logic to forward the irq type from the mpm irq domain to its parent gic irq domain. Change-Id: Id7c42ba59e0d003ffaa0a7951be4a2d3ffdb64a4 Signed-off-by: Raghavendra Kakarla --- drivers/irqchip/qcom-mpm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/qcom-mpm.c b/drivers/irqchip/qcom-mpm.c index 1f242cf729c0..a342948f55c9 100644 --- a/drivers/irqchip/qcom-mpm.c +++ b/drivers/irqchip/qcom-mpm.c @@ -400,6 +400,7 @@ static int msm_mpm_gic_chip_alloc(struct irq_domain *domain, parent_fwspec.param_count = 3; parent_fwspec.param[0] = 0; parent_fwspec.param[1] = parent_hwirq; + parent_fwspec.param[2] = type; return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &parent_fwspec); From 1bd04c6142ce998fba032ca4b8baf3f09af9a461 Mon Sep 17 00:00:00 2001 From: Raghavendra Kakarla Date: Sun, 9 Aug 2020 13:55:15 +0530 Subject: [PATCH 2/2] irqchip: mpm: Update the mpm to gic irq mapping Update the mpm to gic irq mapping with valid mapping. Change-Id: Icd92eb40dadd15c4f601bd3a976f6831ab1898af Signed-off-by: Raghavendra Kakarla --- drivers/irqchip/qcom-mpm-holi.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/irqchip/qcom-mpm-holi.c b/drivers/irqchip/qcom-mpm-holi.c index 1b051404ed5a..c324e03c16a8 100644 --- a/drivers/irqchip/qcom-mpm-holi.c +++ b/drivers/irqchip/qcom-mpm-holi.c @@ -6,12 +6,12 @@ #include const struct mpm_pin mpm_holi_gic_chip_data[] = { - {5, 328}, /* lpass_irq_out_sdc */ - {12, 454}, /* qmp_usb3_lfps_rxterm_irq_cx */ - {86, 215}, /* mpm_wake,spmi_m */ - {89, 346}, /* tsens0_tsens_0C_int */ - {90, 347}, /* tsens1_tsens_0C_int */ - {93, 292}, /* eud_p0_dpse_int_mx */ - {94, 292}, /* eud_p0_dmse_int_mx */ + {5, 296}, /* lpass_irq_out_sdc */ + {12, 422}, /* qmp_usb3_lfps_rxterm_irq_cx */ + {86, 183}, /* mpm_wake,spmi_m */ + {89, 314}, /* tsens0_tsens_0C_int */ + {90, 315}, /* tsens1_tsens_0C_int */ + {93, 260}, /* eud_p0_dpse_int_mx */ + {94, 260}, /* eud_p0_dmse_int_mx */ {-1}, };